502
IBM Midrange System Storage Hardware Guide
Using the show command
Use the
show
command with a string (enclosed in a double quotes) and no options to embed
in your script comments that display in the output view during script execution. For example,
including a
show “START of the script”
command in your script results in the display of
START of the script
in the output view when this line is processed during script execution.
Including
show
statements can help you when writing longer scripts where intermediate steps
can make troubleshooting easier, as shown in Figure 8-3.
Figure 8-3 Show command in Script Editor
Script Editor tools
The Script Editor offers the following tools to help you when writing scripts:
Verify Syntax
To run this option, select Tools
Verify Syntax from the drop-down menu. The Script
Editor engine parses the statements in the script file one line at a time and verifies that it
has the correct syntax. Any syntax errors are displayed in the output view, reporting the
line number of the error and a description of the error. If the Script Editor encounters a
syntax error, no further syntax verification is performed on the script. Fix the syntax error
and rerun the
Verify Syntax
command to validate the error correction and check the
remainder of the statements in the script.
Verify and Execute
To run this option, select the Tools
Verify and Execute option. The Script Editor
engine parses the command statements in the script, interprets and converts the
statements to the appropriate commands, and sends the commands to the storage
subsystem.
If a
syntax error
is encountered, the execution stops and an error message is displayed.
Fix the error, then use the Verify Syntax or Verify and Execute options to validate the error
correction.
If an
execution error
occurs, the script might or might not continue to execute depending
on the included On Error script statement. The On Error Stop statement stops the script if
an execution error is encountered. The On Error Continue statement allows the script to
continue even after an execution error is encountered. (This is the default.)
Summary of Contents for System Storage DS4000
Page 2: ......
Page 18: ...xvi IBM Midrange System Storage Hardware Guide...
Page 40: ...22 IBM Midrange System Storage Hardware Guide...
Page 302: ...284 IBM Midrange System Storage Hardware Guide...
Page 344: ...326 IBM Midrange System Storage Hardware Guide...
Page 372: ...354 IBM Midrange System Storage Hardware Guide Figure 7 25 Drive firmware Incompatible...
Page 490: ...472 IBM Midrange System Storage Hardware Guide...
Page 522: ...504 IBM Midrange System Storage Hardware Guide...
Page 544: ...526 IBM Midrange System Storage Hardware Guide...
Page 561: ...Index 543 Z zoning 129 130...
Page 562: ...544 IBM Midrange System Storage Hardware Guide...
Page 564: ...IBM Midrange System Storage Hardware Guide IBM Midrange System Storage Hardware Guide...
Page 565: ......