NSHScriptJob - addNSHScriptParameterValueByGroupAndName

NSHScriptJob - addNSHScriptParameterValueByGroupAndName

Description :

This command adds a parameter value to an NSH Script Job. The paramIndex argument provides the index of the parameter in the NSH script. (The first parameter is index 0, the second is 1, and so forth.) If an existing parameter value should be edited, the parameter list first needs to be cleared using NSHScriptJob clearNSHScriptParameterValuesByGroupAndName .

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobGroup

String

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

jobName

String

Name of the NSH Script Job.

paramIndex

Integer

Index identifying the parameter to be added. See above for a more complete description.

paramValue

String

Parameter value to be added.

Example

The following example shows how to change parameter values for an NSH Script Job. The first step is to clear the Parameter Values using NSHScriptJob clearNSHScriptParameterValuesByGroupAndName .

Script





JOB_GROUP=/test 

JOB_NAME=nshscript 

PARM1=0 

PARM2=1 

VALUE1=2 

VALUE2=4 


JOB_KEY=`blcli NSHScriptJob clearNSHScriptParameterValuesByGroupAndName $JOB_GROUP $JOB_NAME` 

JOB_KEY=`blcli NSHScriptJob addNSHScriptParameterValueByGroupAndName $JOB_GROUP $JOB_NAME $PARM1 $VALUE1` 

JOB_KEY=`blcli NSHScriptJob addNSHScriptParameterValueByGroupAndName $JOB_GROUP $JOB_NAME $PARM2 $VALUE2` 



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

Comments