NSHScriptJob - setNshErrorPropertyName

NSHScriptJob - setNshErrorPropertyName

Description :

This command sets the NSH Error Property Name. This command returns the modified DBKey of the job

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Handle to the NSH Script Job to set the error property name for.

propertyName

String

Name of the NSH Error Property Name

Example

The following example gets a DBKey of NSH Script Job, sets NSH Error Property name and returns the modified DBkey of the job

Script


JOB_FOLDER="/NSHScriptJobs" 

JOB_NAME="NSHScriptJobWithErrorPropertyName" 

JOB_KEY=`blcli NSHScriptJob getDBKeyByGroupAndName $JOB_FOLDER $JOB_NAME` 

JOB_NSH_PROPERTY_NAME="NSH_ERROR_PROPERTY_NAME" 

JOB_MODIFIED_KEY=`blcli NSHScriptJob setNshErrorPropertyName $JOB_KEY $JOB_NSH_PROPERTY_NAME` 



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

Comments