Job - addTargetGroups
Job - addTargetGroups
Description :
This command adds multiple target server groups to a job.
The argument jobKey is the handle to the job being modified. 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. |
groupNames |
com.bladelogic.om.infra.cli.helper.StringList |
Comma-separated list of the target server group names. |
Example
The following example shows how to add server groups named serverGroup1 and serverGroup2 to a snapshot job tstSnap in job group /snapshots.
Script
JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots tstSnap`
JOB_KEY=`blcli Job addTargetGroups $JOB_KEY serverGroup1,serverGroup2`
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.