NSHScriptJob - showOnlyScriptLogs

NSHScriptJob - showOnlyScriptLogs

Description :

This command sets a flag to display the script logs only for the specified NSH Script Job. This command returns a handle to the updated job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Handle to the NSH Script Job.

showOnlyScriptLogs

Boolean

Flag to set or unset show only script logs option.

Example

The following example shows how to set the option to show only NSH script logs for the job.

Script

# Name of the existing job.
JOB_NAME=nshscriptjob

# Job group in which NSH Script Job is stored.
JOB_GROUP=/Workspace/NSHScripts

# Get the NSH Script Job DBKey using the above information.
JOB_DBKEY=`blcli NSHScriptJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME`
# Set the option to show only NSH Script logs.
JOB_DBKEY=`blcli NSHScriptJob showOnlyScriptLogs $JOB_DBKEY true;`
Was this page helpful? Yes No Submitting... Thank you

Comments