IBM DS6000 Computer Drive User Manual


 
Chapter 4. DS Command-Line Interface 31
4.7 Using the DS CLI application
You have to log into the DS CLI application to use the command modes. There are three
command modes for DS CLI:
Single-shot mode
Interactive mode
Script mode
4.7.1 Single-shot mode
Use the DS CLI single-shot command mode if you want to issue an occasional command, but
do not want to keep a history of the commands that you have issued.
You must supply the login information and the command that you want to process at the
same time. Use the following example for the single-shot mode:
1. Enter dscli -HMC1 <hostname or ip address> -user <user name> -passwd <pwd>
<command>
2. Wait for the command to process and display the results.
Example 4-1 shows the use of the single-shot command mode.
Example 4-1 Single-shot command mode
C:\Program Files\ibm\dscli>dscli -HMC1 10.10.10.1 -user admin -passwd adminpwd
lsuser
Date/Time: 24 de Maio de 2005 14h38min20s BRT IBM DSCLI Version: X.X.X.X
Name Group State
=====================
admin admin locked
admin admin active
exit status of dscli = 0
unfreezepprc Thaws an existing Remote Mirror and Copy Consistency Group
pausegmir Pauses a Global Mirror processing for a session
resumegmir Resumes a Global Mirror processing for a session
chsession Allows to modify a Global Mirror session
Command Description
Important:
The Remote Mirror and Copy commands are asynchronous. This means that the
command is issued to the DS CLI server and if it is accepted successfully, you receive
a successful completion code; however, background activity may still be occurring. For
example, a Metro Mirror pair will take some time to establish, as the tracks need to be
copied across from the primary to the secondary device. In this example, you should
check the state of the volumes using the lspprc command until the pairs have reached
the Duplex state.
The mkflash and mkpprc commands offer the -wait flag, which delays command
response until copy complete status is achieved. You may choose to use this flag, if
you want to be sure of successful completion.