Unsupported content

 

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Utility - simpleExportPatchAnalysisRun

Utility - simpleExportPatchAnalysisRun

Description :

This command exports the results of a Patch Analysis Job run to a file and 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

serverName

String

Name of the server in the Patch Analysis Job results to be exported.

For data from all servers, use a null value (that is, "").

jobGroupName

String

Fully qualified job group where the Patch Analysis Job is stored.

jobName

String

Name of the Patch Analysis Job to export.

runId

Integer

Job Run Id of the Patch Analysis Job run to export.

exportFileName

String

Name of the file that holds the export.

Example

The following example shows how to export the job run result of a Patch Analysis Job. 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

SERVER_NAME="win2kServ1"

JOB_GROUP="/sampleJobGroup"

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`

PATCH_JOB_RUN_EXPORT=`blcli Utility simpleExportPatchAnalysisRun $SERVER_NAME $JOB_GROUP $JOB_NAME $JOB_RUN_ID "C:/temp/samplePatchJobResult.csv"`
Was this page helpful? Yes No Submitting... Thank you

Comments