ComplianceJob - setAutoRemediation


ComplianceJob - setAutoRemediation

Description :

This command sets/resets the Auto Remediation options on a Compliance Job. This command returns a handle to the updated job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

The handle to the Compliance Job.

jobName

String

The name for the auto-remediation job.

depotGroup

String

The name of the depot group to store the files in.

jobGroup

String

The name of the job group to store the remediation job in.

isAutoRemediate

Boolean

The auto-remediation state for the job - true = set.

Example

The following example shows you how to set the auto-remediation data for a compliance job.

Script


# Name of the existing compliance job.

JOB_NAME="compliancejob"

# Job group in which Compliance Job is stored.

JOB_GROUP="/Workspace/Compliance"

# Get the Compliance Job DBKey using the above information.

JOB_DBKEY=`blcli ComplianceJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME`

# Set the Compliance Job auto-remediation flag.

JOB_DBKEY=`blcli ComplianceJob setAutoRemediation $JOB_DBKEY "Remediation job name" "depotGroupName" "jobGroupName" "true"`



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.7