Utility - exportJSONServerDetailedReport

Utility - exportJSONServerDetailedReport

Description :

This command exports the selected servers compliance job run result to a directory and gives you more control over the resulting output than other similar commands. The result is saved in a JSON and HTML format.

Return type : java.lang.Void

Command Input :

Variable Name

Variable Type




ID of the Compliance Job run whose results you want to export.

serverIdIntegerID of the server for which the report needs to be generated.



Name of the directory that holds the export.


The following example shows how to export the selected job run result of a Compliance Job.


SERVER_ID=`blcli Server getServerIdByName "server_name"`
JOB_DB_KEY=`blcli ComplianceJob getDBKeyByGroupAndName "/sampleJobGroup" "sampleJob"`
JOB_RUN_KEY=`blcli JobRun findAllRunKeysByJobKey $JOB_DB_KEY`
JOB_RUN_ID=`blcli JobRun jobRunKeyToJobRunId $JOB_RUN_KEY`
REPORT_EXPORT=`blcli Utility exportJSONServerDetailedReport $JOB_RUN_ID $SERVER_ID "//hostname/c/reports"`
Was this page helpful? Yes No Submitting... Thank you


  1. Vipin Sharma

    Need to specify how to get ServerId and Runid.

    e.g. Server getServerIdByName vl-pun-blg-qa1n.bmc.com

    output 9

    Oct 16, 2015 05:01
    1. Yechezkel Schatz

      Addressed. I also changed the name of the variable to exportDirectory.

      Nov 05, 2015 01:13