NSHScriptJob - addNSHScriptParameterOptionByGroupAndName
NSHScriptJob - addNSHScriptParameterOptionByGroupAndName
Description :
This command adds parameter run time options to use or ignore optional flags or values for a parameter in the NSH Script. Before you use this command, you must clear the existing parameter run time options using clearNSHScriptJobParamOptionsByGroupAndName .
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 whose run time options you want to change. The first parameter is index 0, the second is 1, and so forth. |
skipFlag | Boolean | True to indicate that the identified parameter should skip the optional flag, false otherwise. |
skipValue | Boolean | True to indicate that the identified parameter should skip the optional value, false otherwise. |
Example
The following example shows how to change parameter run time options for an NSH Script Job. The index provided is a zero based number that represents the position in the NSH parameter list that you want to change.
Script
JOB_GROUP=/test
JOB_NAME=nshscript
NSH_PARAMETER_INDEX1=0
NSH_PARAMETER_INDEX2=1
SKIP_FLAG=true
SKIP_VALUE=false
JOB_KEY=`blcli NSHScriptJob clearNSHScriptJobParamOptionsByGroupAndName $JOB_GROUP $JOB_NAME`
JOB_KEY=`blcli NSHScriptJob addNSHScriptParameterOptionByGroupAndName $JOB_GROUP $JOB_NAME $NSH_PARAMETER_INDEX1 $SKIP_FLAG $SKIP_VALUE`
JOB_KEY=`blcli NSHScriptJob addNSHScriptParameterOptionByGroupAndName $JOB_GROUP $JOB_NAME $NSH_PARAMETER_INDEX2 $SKIP_FLAG $SKIP_VALUE`