Usage Examples - IBM System Storage DS3000 Programming Manual

Hide thumbs Also See for System Storage DS3000:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the System Storage DS3000 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

System storage ds4000System storage ds5000

Table of Contents

Save PDF