HP StorageWorks Replication Solutions Manager Command Line User Interface Reference (T3687-96029, August 2005)

C:\mydir> clui –u admin –p nimd a –h server16:9001 “show system list”
0 Success
ArrayA1
ArrayA2
ArrayA3
C:\mydir>
Single command session example batch le
This example sh
ows how to use the remote client to run a single-command session by running a batch
le or script.
The session displays the names of the stora g e arrays that the replication manag er is
interacting with.
Create a batch le or script
On the remote c omputer, open a text editor and enter:
clui –u admin –p nimda –h server16:9001 -s xyz “show system list”
Save as a text le with an appropriate le name extension. For example, save as
report_rsm_stor.bat.
Run the batch le or script
Open a command line window. Enter the name of the b atch le:
report_rsm_stor.bat
The session starts, the list of storage appears, and the session ends.
C:\mydir> clui –u admin –p nimd a –h server16:9001 “show system list”
0 Success
ArrayA1
ArrayA2
ArrayA3
C:\mydir>
File-driven session example
Thisexampleshowshowtousetheremoteclienttorunale-driven session. During the session several
CLUI command s are used to display information about storage systems and virtual disks.
Create a text le
On the remote computer, open a text editor. Enter the following CLUI commands, one com m and per line:
show server
show system list
Save as a text le. For example, save as report_rsm.txt.
Issue the le-driven command
Open a command line window. Enter:
clui –u admin –p nimda –h server16:9001 -f report_rsm.txt
The session starts, d isplays replication manager server information and the list of storage arrays, and
the session ends.
18
Remote client