Chapter 2: About the Script Commands
35
NOTE
While the CLI commands and the script commands are not case sensitive, user
labels (such as for volumes, hosts, or host ports) are case sensitive. If you try to map to
an object that is identified by a user label, you must enter the user label exactly as it is
defined, or the CLI commands and the script commands will fail.
Adding
Comments to a
Script File
The script engine looks for certain characters or a command to show comments. You
can add comments to a script file in three ways:
Add text after two forward slashes (
//
) as a comment 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 appears, and the script
operation is terminated. This error usually occurs when a comment is placed at
the end of a script and you have forgotten to press the
Enter
key.
// Deletes the existing configuration.
set storageArray resetConfiguration=true;
Add text between
/*
and
*/
as a comment. If the script engine does not find
both a starting comment notation and an ending comment notation, an error
message appears, and the script operation is terminated.
/* Deletes the existing configuration */
set storageArray resetConfiguration=true;
Use the
show
statement to embed comments in a script file that you want to
appear while the script file is running. Enclose the text that you want to appear by
using double quotation marks (“ ”).
show “Deletes the existing configuration”;
set storageArray resetConfiguration=true;
Содержание InfiniteStorage 4000 Series
Страница 34: ...22 ExitStatus ...
Страница 48: ...36 Adding Comments to a Script File ...
Страница 110: ...98 Starting Stopping and Resuming a Snapshot Legacy Rollback ...
Страница 168: ...156 Interaction with Other Premium Features ...
Страница 182: ...170 Interaction with Other Premium Features ...
Страница 192: ...180 SSD Cache Management Tasks ...
Страница 216: ...204 RecoveryOperations ...
Страница 218: ...206 Show Storage Array ...
Страница 219: ...Appendix A Examples of Information Returned by the Show Commands 207 ...
Страница 220: ...208 Show Storage Array ...
Страница 221: ...Appendix A Examples of Information Returned by the Show Commands 209 ...
Страница 222: ...210 Show Storage Array ...
Страница 223: ...Appendix A Examples of Information Returned by the Show Commands 211 ...
Страница 224: ...212 Show Storage Array ...
Страница 225: ...Appendix A Examples of Information Returned by the Show Commands 213 ...
Страница 226: ...214 Show Storage Array ...
Страница 227: ...Appendix A Examples of Information Returned by the Show Commands 215 ...
Страница 228: ...216 Show Storage Array ...
Страница 229: ...Appendix A Examples of Information Returned by the Show Commands 217 ...
Страница 230: ...218 Show Storage Array ...
Страница 231: ...Appendix A Examples of Information Returned by the Show Commands 219 ...
Страница 233: ...Appendix A Examples of Information Returned by the Show Commands 221 ...
Страница 234: ...222 Show Controller NVSRAM ...
Страница 252: ...240 ShowDrive Show Drive The show drive command returns information about the drives in a storage array ...
Страница 253: ...Appendix A Examples of Information Returned by the Show Commands 241 ...
Страница 254: ...242 ShowDrive ...
Страница 255: ...Appendix A Examples of Information Returned by the Show Commands 243 ...
Страница 256: ...244 ShowDrive ...
Страница 257: ...Appendix A Examples of Information Returned by the Show Commands 245 ...
Страница 258: ...246 ShowDrive ...
Страница 268: ...256 ConfigurationUtility ...
Страница 275: ......
Страница 276: ...Copyright 2012 NetApp Inc All rights reserved ...