IBM Midrange System DS4000 Series Hardware Manual page 498

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

Advertisement

This executes the command that is found after the -c parameter. See Example 8-3 for more
details.
Example 8-3 Non-interactive commands
C:\temp>"C:\Program Files\IBM_DS\client\SMcli" 9.11.218.183 9.11.218.182 -p xxxx
xxxx -c "show storagesubsystem time;"
Performing syntax check...
Syntax check complete.
Executing script...
Controller in Slot A
Date/Time: Tue Sep 15 11:48:21 GMT-07:00 2009
Controller in Slot B
Date/Time: Tue Sep 15 11:48:17 GMT-07:00 2009
Script execution complete.
SMcli completed successfully.
C:\temp>
If the batch command-line interface method is used, a script file can also be specified. The
SMcli command will verify the file location and syntax of the commands. Each of the
commands will be executed one at a time. When the commands are all executed, the SMcli
command returns to the operating system command prompt. The command has the following
format:
SMcli <IP address of one controller> <IP address of second controller> -f <script
file name>
This executes the commands contained in the script file. If the script file is not in the SMclient
directory or the path to the SMclient in the system environment settings, the full path to the
script must be specified. See Example 8-4 on page 481, where the command show
StorageSubsystem time; show StorageSubsystem lunmappings; is embedded in the
pre-written script (script11.txt).
480
IBM Midrange System Storage Hardware Guide

Advertisement

Table of Contents
loading

Table of Contents