DELL 34XX Benutzerhandbuch

Seite von 417
Usage Guidelines
The following list provides guidelines for writing script commands on the command line:
• You must end all commands with a semicolon (;).
• You can enter more than one command on a line, but you must separate each command with a 
semicolon (;).
• You must separate each base command and its associated primary and secondary parameters with a 
space.
• The script engine is case sensitive.
• You can add comments to your scripts to make it easier for you and future users to understand the 
purpose of the script commands. For information on how to add comments, see Adding Comments 
To A Script File.
NOTE: User labels (such as for virtual disk, hosts, or host ports) are case sensitive. If you map to an 
object identified by a user label, you must enter the user label exactly as it is defined, or the CLI and 
script commands fails.
NOTE: You can use any combination of alphanumeric characters, hyphens, and underscores for the 
names. Command names can have a maximum of 30 characters. If you exceed the maximum 
character limit, replace square brackets ([ ]) with angle brackets (< >) to overcome this limitation.
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, 10 GB returns 
an error, but 9 GB does not return an error.
Adding Comments To A Script File
You can add comments to a script file in three ways:
• 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 
have not pressed <Enter>.
// Deletes the existing configuration.
clear storageArray Configuration;
• 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;
• 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;
38