Utility - exportJSONServerWiseSummaryReport
Utility - exportJSONServerWiseSummaryReport
Description :
This command exports the JSON file which contains details about the server wise summary of the results.
Return type : java.lang.Void
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
runId | Integer | ID of the Compliance Job run whose results you want to export. |
exportDirectory | String | Name of the directory that holds the export. |
Example
The following example shows how to export the selected job run result of a Compliance Job.
Script
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 exportJSONServerWiseSummaryReport $JOB_RUN_ID "//hostname/c/reports"`
JOB_RUN_KEY=`blcli JobRun findAllRunKeysByJobKey $JOB_DB_KEY`
JOB_RUN_ID=`blcli JobRun jobRunKeyToJobRunId $JOB_RUN_KEY`
REPORT_EXPORT=`blcli Utility exportJSONServerWiseSummaryReport $JOB_RUN_ID "//hostname/c/reports"`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*