18
Usage Examples
Enclose the script command in single quotation marks (’ ’)
Double quotation marks that are part of a name, file path, or value must have a
backslash before each double quotation mark character (\")
Following is an example of a CLI command to create a storage array name in the
Windows Powershell. Note the use of the single quotation marks as delimiters for the
script command and the backslash double quotation marks around the storage array
name, identified as
userLabel
in the command syntax.
PS C:\...\StorageManager\client> ./SMcli.exe
123.45.67.88 123.45.67.89
-c ’set storageArray userLabel=\"Engineering\";’
Following is an example of a CLI command to enable a premium feature in the
Windows Powershell. Note the use of the backslash double quotation marks before
the file path to the premium feature key.
PS C:\...\StorageManager\client> ./SMcli.exe
123.45.67.88 123.45.67.89
-c ’enable storageArray feature
file=\"C:\licenseKey.bin\";’
In the previous examples both upper case letters and lower case letters are used. This
use is to help make clear how the commands are formatted. The Windows PowerShell
is, however, not case sensitive and does not require the use specific cases.
Usage
Examples
The following examples show how to enter CLI commands on a command line. The
examples show the syntax, the form, and, in some examples, script commands.
Examples are shown for both the Windows operating system and the UNIX operating
system. Note that the usage for the
-c
terminal varies depending on your operating
system. On Windows operating systems, enclose the script command following the
-c
terminal in double quotation marks (" "). On UNIX operating systems, enclose the
script command following the
-c
terminal in single quotation marks (' '). For
descriptions of the script commands used in these examples, refer to the
Command
Line Interface and Script Commands for Version 10.75
.
This example shows how to change the name of a storage array. The original name of
the storage array is Payroll_Array. The new name is Finance_Array.
Windows operating system:
SMcli ICTSANT -n "Payroll_Array" -c "set storageArray
userLabel=\"Finance_Array\";"
UNIX operating system:
SMcli ICTSANT -n 'Payroll_Array' -c 'set storageArray
userLabel="Finance_Array";'
Содержание 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 ...