NSHScriptJob - executeJobGetJobResultKey

NSHScriptJob - executeJobGetJobResultKey

Description :

This command executes an NSH Script Job and waits for the job to end before returning. If approval is enabled for the job type use the other command which takes in approval id as an additional input. This command returns a handle to the job result. The handle can be used in other commands that need to reference the results of an NSH Script Job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Handle to the NSH Script Job to be executed.

Example

The following example gets a handle to an NSH Script Job, executes the job, and returns a handle to the job result.

Script


JOB_FOLDER="/Jobs/NSHScriptJobs" 

JOB_NAME="Run on all Servers" 

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

JOB_RESULT_KEY=`blcli NSHScriptJob executeJobGetJobResultKey $JOB_KEY` 



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

Comments