UpdateServerPropertyJob - getDBKeyByGroupAndName

UpdateServerPropertyJob - 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 update server property job.

Script


# Name of the existing update server property job. 

UPDATE_SERVER_PROPERTY_JOB_NAME="compliancejob1" 

# Job group in which update server property job is stored. 

UPDATE_SERVER_PROPERTY_JOB_GROUP="/parent/group1" 

# Get the update server property job DBKey using the above info. 

UPDATE_SERVER_PROPERTY_JOB_DBKEY=`blcli UpdateServerPropertyJob getDBKeyByGroupAndName $UPDATE_SERVER_PROPERTY_JOB_GROUP $UPDATE_SERVER_PROPERTY_JOB_NAME` 



Was this page helpful? Yes No Submitting... Thank you

Comments