Utility - exportJSONRuleDetailsReport
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 :
ID of the Compliance Job run whose results you want to export.
|templateName||String||Name of the component template in which the rule that you want to export was defined.|
|groupName||String||Name of the rule group that contains the rule that you want to export.|
|ruleName||String||Name of the rule whose detailed results you want to export.|
Name of the directory that holds the export.
The following example shows how to export the selected job run result of a Compliance Job.
JOB_GROUP="/sampleJobGroup" JOB_NAME="sampleJob" JOB_DB_KEY=`blcli ComplianceJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME` JOB_RUN_KEY=`blcli JobRun findAllRunKeysByJobKey $JOB_DB_KEY` JOB_RUN_ID=`blcli JobRun jobRunKeyToJobRunId $JOB_RUN_KEY` JSON_COMPLIANCE_JOBRUN_EXPORT=`blcli Utility exportJSONRuleDetailsReport $JOB_RUN_ID "templateName" "groupName" "ruleName" "//hostname/c/reports"`