Learn About the Script Editor

Many storage management options available through the Subsystem Management Window also can be performed on the using statements in scripts. Use Script Editor to create or edit a script file, save a script file to the local disk of the , or load a script file from disk.

The Script Editor has an engine that verifies statement syntax, interprets the statements, converts statements to the applicable protocol-compliant commands, and passes the commands to the storage subsystem, where the controllers in the storage subsystem run them.

The Script Editor provides two views in the window:

A splitter bar divides the window between Script View and Output View. You can use the splitter bar to resize the views.

Script Editor Guidelines

Follow these guidelines when you use the Script Editor:

You insert comments into a script in one of two ways:

Interpreting the Script Execution Results

During script execution, messages appear in the Output View starting with:

Executing script...

After a successful script execution, this message appears:

Script execution complete.

If an error occurs during the parse phase, the error appears in the Output View, which provides the line number and the column number and a description of the syntax error.

Example: If you type the following statement in a script:

set controller[a] mod = passive;

The resulting syntax error appears in the Output View:

Encountered "mod" at line 2, column 19

Was expecting one of...

"mode"...

"availability"...

"NVSRAMbyte"...

If an error occurs during the execution of a script, a message appears in the Output View, states that the command failed and reports a description of the error.

Example: If you type the following statement in a script:

set logical drive [three] userLabel="OneOne";

The resulting error appears in the following Output View. The command could not be sent to the storage subsystem because it was in an state.

Unable to change the logical drive user label using the Set Logical drive command at line 1

Error - 1 - Could not communicate with the storage subsystem to complete this request.


Important:

Certain execution errors, including the inability to communicate with the storage subsystem, always cause script execution to halt. In these cases, execution stops even if you have used the On Error Continue statement.

Related Links: