Chapter 8. Command-line interface and Script Editor
481
Example 8-4 Sending scripts to SMclient
C:\temp>"C:\Program Files\IBM_DS\client\SMcli" 9.11.218.183 9.11.218.182 -p xxx
xxxx -S -f "C:\temp\script11.txt"
Controller in Slot A
Date/Time: Tue Sep 15 15:11:46 GMT-07:00 2009
Controller in Slot B
Date/Time: Tue Sep 15 15:11:43 GMT-07:00 2009
MAPPINGS (Storage Partitioning - Enabled (3 of 8 used))-------------------
Logical Drive Name LUN Controller Accessible by Logical
Drive status
AIX_Boot 3 A Host Group AIX_ITSO Optimal
Secured1 2 A Host Group AIX_ITSO Optimal
test3 4 A Host Group AIX_ITSO Optimal
RAID1_SATA_00 0 B Host Group LAB_SVC_Cluster_1 Optimal
Access Logical Drive 31 A,B Host WinITSO Optimal
TC-2008-1 0 B Host WinITSO Optimal
C:\temp>
This method can be used, for example, to automatically create (by combining native operating
system commands with CLI commands) a FlashCopy logical drive, mount it under the
operating system, and create a backup of it.
For detailed information about the CLI parameters, consult the Command Line reference
included in the SMclient online help or the guide IBM System Storage DS3000, DS4000, and
DS5000 Command Line Interface and Script Commands Programming Guide, GC52-1275.
8.1.3 Syntax requirements
The
SMcli
command has some specialized syntax requirements, but most of them can be
simplified by using the batch command-line interface. A script file simply contains the list of
commands that are normally run from the command line, so no special formatting is required.
The script can be used by any
SMcli
command on any platform without modification.
SMcli
has the following usage and formatting requirements:
Usage requirements that apply to all operating systems:
– All statements must end with a semi-colon (;).
– Separate each base command and any parameters with a space.
– Separate each parameter and its parameter value with an equal sign.
– The Script Editor and command-line interface are not case-sensitive. Any combination
of upper- and lowercase letters can be entered.
– Invoking
SMcli
with no arguments or with an unrecognized parameter will cause usage
information to be displayed.
– Arguments used after the -n, -o, -f, and -p options that contain a space, a number, or a
special character (<, >, ', !, *, for example) need to be enclosed in single quotes (') or
double quotes (“), depending on the operating system being used.
– Arguments used after the -n, -o, -f, and -p options that contain a single quote character
(') need to be enclosed in double quotes (“).
Содержание System Storage DS4000
Страница 2: ......
Страница 18: ...xvi IBM Midrange System Storage Hardware Guide...
Страница 40: ...22 IBM Midrange System Storage Hardware Guide...
Страница 302: ...284 IBM Midrange System Storage Hardware Guide...
Страница 344: ...326 IBM Midrange System Storage Hardware Guide...
Страница 372: ...354 IBM Midrange System Storage Hardware Guide Figure 7 25 Drive firmware Incompatible...
Страница 490: ...472 IBM Midrange System Storage Hardware Guide...
Страница 522: ...504 IBM Midrange System Storage Hardware Guide...
Страница 544: ...526 IBM Midrange System Storage Hardware Guide...
Страница 561: ...Index 543 Z zoning 129 130...
Страница 562: ...544 IBM Midrange System Storage Hardware Guide...
Страница 564: ...IBM Midrange System Storage Hardware Guide IBM Midrange System Storage Hardware Guide...
Страница 565: ......