Job - addTargetGroup

Job - addTargetGroup

Description :

This command adds a target server group to a job.

The argument jobKey is the handle to the job being modified. To find the jobKey for a specific job type, use the SnapshotJob getDBKeyByGroupAndName command. Use the groupName argument to provide the fully qualified path to the target server group (for example, /WestCoast/Windows). This command returns the handle of the updated job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Handle of the job to be updated.

groupName

String

Name of the target server group.

Example

The following example shows how to add several target server groups to a job.

Script





GROUPS=`cat groups.txt` 

JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots snapconfig` 

for GROUP in $GROUPS 

do 

JOB_KEY=`blcli addTargetGroup $JOB_KEY $GROUP` 

done 



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

Comments