Utility - exportPatchAnalysisRun

Utility - exportPatchAnalysisRun

Description :

This command exports results of an Patch Analysis Job run to a file. You must identify the job run by its run number. You can save the result in HTML or 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.

exportType

String

Format for saving exported results (CSV or HTML).

Example

The following example shows how to export the job run result of a Patch Analysis Job. The example also shows how to obtain the job run ID before running 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 exportPatchAnalysisRun $SERVER_NAME $JOB_GROUP $JOB_NAME $JOB_RUN_ID "C:/temp/samplePatchJobResult.csv" "CSV"`
Was this page helpful? Yes No Submitting... Thank you

Comments