NSHScriptJob - getDBKeyByGroupAndName


NSHScriptJob - getDBKeyByGroupAndName

Description :

This command gets the handle for an NSH Script Job. You must provide the job name and the full path to the job group containing the job. This command returns a handle to the job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

groupName

String

Full path to the job group containing the NSH Script Job.

jobName

String

Name of the NSH Script Job.

Example

The following example gets a handle to an NSH Script Job called Run on all Servers. This job is located in the /NSHScriptJobs group.

Script


JOB_FOLDER="/NSHScriptJobs"

JOB_NAME="Run on all Servers"

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



 

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

TrueSight Server Automation Command Line Interface 22.2