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.

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



 

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

BMC Server Automation Command Line Interface 8.5