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

PatchRemediationJob - getDBKeyByGroupAndName


PatchRemediationJob - getDBKeyByGroupAndName

Description :

This command gets the DBKey for a job. You must provide the job name and full path to the job group containing the job. This command returns a handle to the job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

groupName

String

Fully qualified path to the job group containing the job.

jobName

String

Name of the job.

Example

The following example shows you how to get the DBKey of an existing Remediation Job.

Script


# Name of the existing Remediation Job.

PATCH_REMEDIATION_JOB_NAME="remediationjob1"

# Job group in which Remediation Job is stored.

PATCH_REMEDIATION_JOB_GROUP="/parent/group1"

# Get the Remediation Job DBKey using the above information.

PATCH_REMEDIATION_JOB_DBKEY=`blcli PatchRemediationJob getDBKeyByGroupAndName $PATCH_REMEDIATION_JOB_GROUP $PATCH_REMEDIATION_JOB_NAME`



 

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

BMC Server Automation Command Line Interface 8.3