Syntax Requirements - IBM Midrange System DS4000 Series Hardware Manual

Midrange system storage ds4000/ds5000 series
Hide thumbs Also See for Midrange System DS4000 Series:
Table of Contents

Advertisement

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
Drive status
AIX_Boot
Secured1
test3
RAID1_SATA_00
Access Logical Drive 31
TC-2008-1
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 (").
LUN Controller Accessible by
3
A
Host Group AIX_ITSO
2
A
Host Group AIX_ITSO
4
A
Host Group AIX_ITSO
0
B
Host Group LAB_SVC_Cluster_1 Optimal
A,B
Host WinITSO
0
B
Host WinITSO
Chapter 8. Command-line interface and Script Editor
Logical
Optimal
Optimal
Optimal
Optimal
Optimal
481

Advertisement

Table of Contents
loading

Table of Contents