How to Work with Large Datasets
The --async
option is for working with large data sets without waiting for the results. The option works like “batch job.”
The option can be used with any resource. The workflow is as follows:
You issue the desired
ilo
command with the--async
option, which displays a job ID.You take note of the job ID.
Your session is freed up while the job runs.
The job creates a data file, which you view with
datafile --read --job-id jobID
.
Goal
Get a report of a large workload data set.
Steps
Issue the
--async
request for a workload list. Take note of job ID, which is the final word of the href displayed on the Location line.[kurt.goedel~]$ ilo workload list --async Using /home/kurt.goedel/.rvm/gems/ruby-2.2.1 Location: /orgs/1/jobs/fe8a1c2b-1674-4b83-8967-eb56c4ffa1e3 202, Accepted
Check to see if the job completed. Use the job ID from the
Location
output in previous command:[sigmund.freud~]$ ilo job read --job-id fe8a1c2b-1674-4b83-8967-eb56c4ffa1e Using /home/sigmund.freud/.rvm/gems/ruby-2.2.1
Download the resulting data file, specifying the job ID with
-uuid jobID
:[bill.gates ~]$ ilo datafile read --uuid 1e1c1540-8a01-0136-ec14-02f4d6c1190c Using /home/ bill.gates /.rvm/gems/ruby-2.2.1 +--------------------------------------------------------+---------+------+-- ... Many lines not shown +-----------------------------+----------------------+-----------------------------+----------------------+ | Href | Deleted | Name | Description | Hostname | Service Principal Name | Public Ip | Distinguished Name | External Data Set | External Data Reference | Interfaces | Ignored Interface Names | Service Provider | Data Center | Data Center Zone | Os Id | Os Detail | Online | Labels | Services | Agent | Created At | Created By | Updated At | Updated By +--------------------------------------------------------+---------+------+-------------+---------------- ... More lines not shown ---------------------------------------------------------+ | /orgs/1/workloads/50ce441e-75ac-4be8-9201-96169545019c | false | | | 10.14.59.8.netstat ... ... Many lines not shown ...