Issuing Commands To The Storage Subsystem - IBM System Storage DS3500 Introduction And Implementation Manual

Table of Contents

Advertisement

Draft Document for Review March 28, 2011 12:24 pm
amazon:~ # SMcli -a trap:out-band,nile.rivers.local -r direct_sa
SMcli completed successfully.
amazon:~ # SMcli -a trap:global,nile.rivers.local
SMcli completed successfully.
amazon:~ #

17.7 Issuing commands to the storage subsystem

Commands can be issued to one of the defined storage subsystems by using the -c option.
Use the following syntax to issue the commands:
SMcli {<DNS-network-name-or-IP-address> [<DNS-network-name-or-IP-address>] | -n
<Subsystem Name> | -w <WWID> }
{[-c "<command>;[<command2>;...]"] | [-f <scriptfile>]}
[-o <outputfile>] [-p <password>] [-e] [-S] [-quick]
See 17.3, "General SMcli syntax" on page 538 for information about the meaning of each
option.
The parameter -c requires that all commands be enclosed in single or double quotes. Each
command must be terminated by a semicolon. Multiple commands can follow on one
command line. Example 17-13 shows a command to a storage subsystem to get the health
status of that storage subsystem.
Example 17-13 SMcli - Command
amazon:/ # SMcli -n DS3524 -c "show storagesubsystem healthstatus;" -S
The following failures have been found:
Failed Drive - Unassigned or Hot Spare
Storage Subsystem: DS3524
Enclosure: Controller/Drive enclosure
Affected drive slot(s): 1
Service action (removal) allowed: Yes
Service action LED on component: Yes
amazon:/ #
An alternative to specifying multiple commands in one line is to create a script file that
contains each command on a single line. You can do this using the Script Editor (which allows
you to validate and execute the commands), or in your favorite text editor.
In the script file, each command must be terminated with a semicolon. Quotation marks are
not necessary. Example 17-14 shows a script file that creates some logical drives and
assigns them to a host.
Example 17-14 Example of a command script file
create logicalDrive drives=(7,2 7,3) RAIDLevel=1 userLabel="Hudson-1"
segmentSize=64 \ capacity=10 GB owner=a usageHint=fileSystem mapping=none;
create logicalDrive drive [7,4] RAIDLevel=0 userLabel="Hudson-2" segmentSize=64 \
capacity=8 GB owner=b usageHint=fileSystem mapping=none;
7914appCLI1208.fm
Chapter 17. Command-Line Interface(CLI)
547

Advertisement

Table of Contents
loading

Table of Contents