Utility - simpleExportPatchAnalysisRunSummary
Utility - simpleExportPatchAnalysisRunSummary
Description :
This command exports the results of a Patch Analysis Job run as CSV format which gives you more control over the resulting output than other similar commands. You must identify the job run by its run number. The result is in a CSV format.
Return type : java.lang.Void
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobGroupName | String | Fully qualified job group where the Patch Analysis Job is stored. |
jobName | String | Name of the Patch Analysis Job to export. |
runId | String | Job Run Id of the Patch Analysis Job run to export. |
Example
The following example shows how to export the job run result of a Patch Analysis Job. To prepare for the export, first get the job key, and use it to get the job run key; then convert the job run key to a job run ID, and then run the export command.
Script
JOB_GROUP="/sampleJobGroup"
JOB_NAME="samplePatchJob"
JOB_DB_KEY=`blcli PatchingJob getDBKeyByGroupAndName "$JOB_GROUP" "$JOB_NAME"`
JOB_RUN_KEY=`blcli JobRun findLastRunKeyByJobKey $JOB_DB_KEY`
JOB_RUN_ID=`blcli JobRun jobRunKeyToJobRunId $JOB_RUN_KEY`
PATCH_JOB_RUN_EXPORT=`blcli Utility simpleExportPatchAnalysisRunSummary "$JOB_GROUP" "$JOB_NAME" $JOB_RUN_ID`
JOB_NAME="samplePatchJob"
JOB_DB_KEY=`blcli PatchingJob getDBKeyByGroupAndName "$JOB_GROUP" "$JOB_NAME"`
JOB_RUN_KEY=`blcli JobRun findLastRunKeyByJobKey $JOB_DB_KEY`
JOB_RUN_ID=`blcli JobRun jobRunKeyToJobRunId $JOB_RUN_KEY`
PATCH_JOB_RUN_EXPORT=`blcli Utility simpleExportPatchAnalysisRunSummary "$JOB_GROUP" "$JOB_NAME" $JOB_RUN_ID`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*