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 - moveByJobKeyAndGroup

Job - moveByJobKeyAndGroup

Description :

Move a job to another group, given its full path. First step is to find a job object given the job key, then we move it to the specified group. This command returns the handle to the moved Job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Handle to the job being modified.

toGroupName

String

Full path to where it is to be moved

Example

The following example demonstrates how to obtain a job key and then use the command to move the job to a different group.

Script

JOB_FOLDER="/NSH_Jobs_1"

JOB_NAME="Run on all Servers"

JOB_KEY=`blcli NSHScriptJob getDBKeyByGroupAndName "$JOB_FOLDER" "$JOB_NAME"`

MOVED_JOB_KEY=`blcli Job moveByJobKeyAndGroup "$JOB_KEY" "/NSH_Jobs_2"`
Was this page helpful? Yes No Submitting... Thank you

Comments