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 - 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

  1. Michael Gelinas

    "For data from all servers, use a null value (that is, "")", is what the reference states. However, exportPatchAnalysisRun doesn't seem to take a NULL value for SERVER_NAME? I need to export patch analysis for all servers in the run. I don't want to iterate through them one by one calling the individual SERVER_NAME.

    May 18, 2018 09:37