About the Script Commands
41
NOTE:
The capacity parameter returns an error if you specify a value greater than
or equal to 10 without a space separating the numeric value and its unit of measure.
(For example,
10GB
will return an error, but
10 GB
will not return an error).
Adding Comments to a Script File
You can add comments to a script file in three ways.
1
The script engine interprets as a comment any text typed after two forward
slashes (
/ /
) until an end-of-line character is reached. If the script engine
does not find an end-of-line character in the script after processing a
comment, an error message is displayed, and the script operation is
terminated. This error commonly occurs when a comment is placed at the
end of a script and you did not press the Enter key.
// Deletes the existing configuration.
clear storageArray Configuration;
2
The script engine interprets any text typed between
/ *
and
* /
as a
comment. If the script engine does not find both a beginning and ending
comment notation, an error message is displayed, and the script operation
is terminated.
/* Deletes the existing configuration */
clear storageArray Configuration;
3
Use the
show
statement to embed comments in a script file that you want
to display while the script file is running. Enclose the text you want to
display in quotation marks (" ").
show "Deletes the existing configuration";
clear storageArray Configuration;
Summary of Contents for PowerVault MD3000i
Page 12: ...12 Contents ...
Page 42: ...42 About the Script Commands ...
Page 90: ...90 Using the Virtual Disk Copy Feature ...
Page 104: ...104 Maintaining a Storage Array ...
Page 222: ...222 Script Commands ...
Page 228: ...228 Sample Script Files ...
Page 236: ...236 Index ...