Chapter 8. Command-line interface and Script Editor
479
Basic interactive command-line execution examples are shown in Example 8-2. In the
example, the user runs the command
show storagesubsystem time;
.
Note that the user
presses Ctrl-c to exit the interactive mode and return to the command line prompt, which is
the same for both UNIX and Windows.
Example 8-2 SMcli command in interactive mode
C:\temp>"C:\Program Files\IBM_DS\client\SMcli" 9.11.218.183 9.11.218.182 -p
xxxxxxxx
Executing script...
show storagesubsystem time;
Controller in Slot A
Date/Time: Tue Sep 15 11:38:35 GMT-07:00 2009
Controller in Slot B
Date/Time: Tue Sep 15 11:38:32 GMT-07:00 2009
^C
Script execution complete.
C:\temp>
The interactive command-line method can also be invoked using the -c option, which allows a
command to execute immediately. This method will execute the specified command and
return to the operating system command prompt:
SMcli <IP address of one controller> <IP address of second controller> -c
"<command>;"
-w
Specifies the storage subsystem, using its world-wide name (WWN), on which you want to perform
the script commands.
Note: The WWN is optional when a <hostname> is used or if the -n option is used to identify the
storage subsystem with its <storagearrayname>. Use this option
instead
of the -n option.
-x
Delete an SNMP trap destination or e-mail alert destination. To delete an SNMP trap destination,
enter:
-x trap:Community, HOST
Here COMMUNITY is the SNMP Community Name, and HOST is the IP address or the host name
of a station running an SNMP service.
To delete an e-mail alert destination, enter:
-x email:MAILADDRESS
Here MAILADDRESS is the fully qualified e-mail address to which the alert message will no longer
be sent.
-X
Use this parameter to delete a storage subsystem from a configuration.
-?
Displays usage information.
Command-line
parameter
Description
Summary of Contents for System Storage DS4000
Page 2: ......
Page 18: ...xvi IBM Midrange System Storage Hardware Guide...
Page 40: ...22 IBM Midrange System Storage Hardware Guide...
Page 302: ...284 IBM Midrange System Storage Hardware Guide...
Page 344: ...326 IBM Midrange System Storage Hardware Guide...
Page 372: ...354 IBM Midrange System Storage Hardware Guide Figure 7 25 Drive firmware Incompatible...
Page 490: ...472 IBM Midrange System Storage Hardware Guide...
Page 522: ...504 IBM Midrange System Storage Hardware Guide...
Page 544: ...526 IBM Midrange System Storage Hardware Guide...
Page 561: ...Index 543 Z zoning 129 130...
Page 562: ...544 IBM Midrange System Storage Hardware Guide...
Page 564: ...IBM Midrange System Storage Hardware Guide IBM Midrange System Storage Hardware Guide...
Page 565: ......