HP StorageWorks 2300 Modular Smart Array CLI reference guide Part number: 500912-001 First edition: January 2009
Legal and notice information © Copyright 2009 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. Microsoft and Windows are U.S.
Contents About this guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Intended audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Prerequisites. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Document conventions and symbols . . . . . . .
delete all-master-volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . delete all-snapshots. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . delete host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . delete master-volume. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
set volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . show advanced-settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . show auto-write-through-trigger. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . show awt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Tables 1 2 3 4 5 6 7 Document conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Default usernames and passwords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 XML API elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Keyboard shortcuts for command completion, editing, and history . . . . . . .
About this guide This guide provides information about managing an 2300 Modular Smart Array storage system by using its command-line interface (CLI). Intended audience This guide is intended for storage system administrators.
CAUTION: NOTE: Indicates that failure to follow directions could result in damage to equipment or data. Provides additional information. HP technical support Telephone numbers for worldwide technical support are listed on the HP support web site: http://www.hp.com/support/.
1 Using the CLI This chapter introduces the HP StorageWorks 2300 Modular Smart Array command-line interface (CLI). Accessing the CLI The CLI software embedded in controller modules enables you to manage a storage system out of band. You can access the CLI in two ways: • By using a terminal emulator on a management host that is directly connected to a controller module’s serial CLI port.
Using CLI scripts CLI commands can be scripted using a Telnet client like Expect or a Perl library. The following example shows the Perl Expect script showfree.
The following example shows how to construct a script using a Perl library for Telnet communication. use Net::Telnet; $mVer = "v.072006"; $mLine = "=========================================================="; $mStr = "Management Controller System Cloning Utility"; $nLine = "\n"; $cliDumpFile = "get_config_dump.
Using the XML API You can use an XML parser such as XML::Parser in Perl to process the XML output and store this information as objects. The XML parser should use the Document Type Definition (DTD) version that corresponds to the firmware level to ensure that the XML is validated. By obtaining the latest DTD for validation, the parser will be forward compatible. The output of each CLI command is composed of valid XML data until the CLI prompt (typically #) is encountered.
Scripting guidelines When writing scripts to parse XML API output, use an XML library to parse the data. For parsing, a script should not rely on ordering, spacing, or column position. To find a specific property, a script should compare property names as it searches through the data. This allows the script to be compatible with future versions that could potentially add new fields to the output. The output of show commands is intended for monitoring or obtaining the current configuration.
standard 0 Default PAGE 17XML API DTD The following DTD provides the structure of all documents returned by the CLI when XML API mode is enabled. Elements and attributes are described in the table on the following page.