Usage examples
Here are some examples that show how CLI commands are entered on a command line. The examples
show the syntax, the form, and, in some examples, script commands. Examples are shown for both the
Windows operating system and the UNIX operating system. Note that the usage for the
-c
terminal
varies depending on your operating system. On Windows operating systems, enclose the script command
following the
-c
terminal in double quotation marks (" "). On UNIX operating systems, enclose the script
command following the
-c
terminal in single quotation marks (' '). (For descriptions of the script
commands used in these examples, see Chapter 3, “Script Commands,” on page 3-1.
This example shows how to change the name of a storage subsystem. The original name of the storage
subsystem is Payroll_Subsystem. The new name is Finance_Subsystem. The storage subsystem is
managed in-band through the host name ICTSANT.
v
Windows operating system:
SMcli ICTSANT -n "Payroll_Subsystem"
-c "set storageSubsystem userLabel=\"Finance_Subsystem\";"
v
UNIX operating system:
SMcli ICTSANT -n ’Payroll_Subsystem’
-c ’set storageSubsystem userLabel="Finance_Subsystem";’
This example shows how to delete an existing logical drive and create a new logical drive on a storage
subsystem. The existing logical drive name is Stocks_<_Bonds. The new logical drive name is Finance.
The controller host names are finance1 and finance2. The storage subsystem is protected, requiring the
password TestSubsystem.
v
Windows operating system:
SMcli finance1 finance2
-c ’set session password=\"TestSubsystem\"; delete logicalDrive
[\"Stocks_<Bonds\"];
create logicalDrive driveCount[3] RAIDLEVEL=3 capacity=10GB userLabel=\
"Finance\";
show storageSubsystem healthStatus;"
v
UNIX operating system:
SMcli finance1 finance2 -c ’set session password="TestSubsystem";
delete logicalDrive ["Stocks_<Bonds"];
create logicalDrive driveCount[3] RAIDLEVEL=3 capacity=10GB userLabel=
"Finance";
show storageSubsystem healthStatus;’
This example shows how to run commands in a script file named
scriptfile.scr
on a storage subsystem
named Example. The
-e
terminal causes the file to run without checking the syntax. Running a script file
without checking the syntax lets the file run more quickly; however, the file might not run correctly
because the syntax for a command might be incorrect.
SMcli -n Example -f scriptfile.scr -e
This example shows how to run commands in a script file named
scriptfile.scr
on a storage subsystem
named Example. In this example, the storage subsystem is protected by the password MySubsystem.
Output, as a result of commands in the script file, goes to file
output.txt
.
v
Windows operating system:
SMcli -n Example -f scriptfile.scr -p "My_Subsystem" -o output.txt
v
UNIX operating system:
SMcli -n Example -f scriptfile.scr -p ’My_Subsystem’ -o output.txt
This example shows how to show all of the storage subsystems in the current configuration. The
command in this example returns the host name of each storage subsystem.
SMcli -d
Chapter 1. About the Command Line Interface
1-13
Содержание System Storage DS3000
Страница 10: ...x IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 12: ...xii IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 46: ...2 12 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 382: ...3 336 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 476: ...7 16 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 504: ...9 12 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 512: ...10 8 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 530: ...11 18 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 590: ...12 60 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 594: ...13 4 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 596: ...14 2 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 598: ...A 2 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 599: ...Appendix A Examples of information returned by the show commands A 3...
Страница 600: ...A 4 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 601: ...Appendix A Examples of information returned by the show commands A 5...
Страница 602: ...A 6 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 603: ...Appendix A Examples of information returned by the show commands A 7...
Страница 604: ...A 8 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 605: ...Appendix A Examples of information returned by the show commands A 9...
Страница 606: ...A 10 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 607: ...Appendix A Examples of information returned by the show commands A 11...
Страница 608: ...A 12 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 609: ...Appendix A Examples of information returned by the show commands A 13...
Страница 610: ...A 14 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 611: ...Appendix A Examples of information returned by the show commands A 15...
Страница 623: ...Appendix A Examples of information returned by the show commands A 27...
Страница 624: ...A 28 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 625: ...Appendix A Examples of information returned by the show commands A 29...
Страница 626: ...A 30 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 627: ...Appendix A Examples of information returned by the show commands A 31...
Страница 628: ...A 32 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 632: ...B 4 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 648: ...F 4 IBM System Storage DS3000 DS4000 and DS5000 Command Line Interface and Script Commands Programming Guide...
Страница 651: ......
Страница 652: ...Part Number 00W1466 Printed in USA GA32 0961 05 1P P N 00W1466...