Utility - simpleBatchWiseExportPatchAnalysisRun
Utility - simpleBatchWiseExportPatchAnalysisRun
Description :
This command exports the results of a Patch Analysis Job run based on the batch size to a file, and gives you more control over the resulting output than other similar commands. You can also specify to export the job run result of a specific server. You must identify the job run by its run number. The result is exported to a CSV format.
Return type : java.lang.Void
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
JOB_GROUP | String | The fully qualified name of the job group where the Patch Analysis Job is stored. |
JOB_NAME | String | The name of the Patch Analysis Job to be exported. |
JOB_RUN_ID | Integer | Job Run ID of the Patch Analysis Job run to be exported. |
EXPORT_FILE_NAME | String | The name of the file that contains the exported results. |
batchSize | Integer | The batch size to be queried for exporting the results. To use the default batch size (30,000), specify 0. |
(optional) SERVER_NAME NEW IN 20.02.01 | String | The name of the server for which you want to export the analysis run. |
Example
The following example shows how to export the job run result of a Patch Analysis Job based on a batch size. To prepare for the export, we first get the job key, and use it to get the job run key; we then convert the job run key to a job run ID, and then we are finally ready to run the export command.
Script
JOB_NAME="samplePatchJob"
JOB_DB_KEY=`blcli PatchingJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME`
JOB_RUN_KEY=`blcli JobRun findAllRunKeysByJobKey $JOB_DB_KEY`
JOB_RUN_ID=`blcli JobRun jobRunKeyToJobRunId $JOB_RUN_KEY`
blcli Utility simpleBatchWiseExportPatchAnalysisRun $JOB_GROUP $JOB_NAME $JOB_RUN_ID "C:/temp/samplePatchJobResult.csv"`batchSize
To export the result of a specific server:
blcli Utility simpleBatchWiseExportPatchAnalysisRun $SERVER_NAME $JOB_GROUP $JOB_NAME $JOB_RUN_ID "C:/temp/samplePatchJobResult.csv" batchSize