Note: When logging in to the DS CLI, you can use the hostname or the IP address of the
DS SMC.
4.7.2 Script command mode
Use the DS CLI script command mode, if you want to use a sequence of DS CLI commands.
Administrators can use this mode to create automated processes, for example, establishing
Remote Mirror and Copy relationships for volume pairs.
You can issue the DS CLI script from the command prompt at the same time that you provide
your login information:
1. Enter dscli -HMC1 <hostname or ip address> -user <user name> -passwd <pwd>
-script <full path of script file>
2. Wait for the script to process and provide a report regarding the success or failure of the
process.
Example 4-2 shows the use of the script command mode.
Example 4-2 Script command mode
C:\Program Files\ibm\dscli>dscli -HMC1 10.10.10.1 -user admin -passwd adminpwd
-script c:\test.cli
Date/Time: 24 de Maio de 2005 14h40min22s BRT IBM DSCLI Version: X.X.X.X DS: IBM
IBM.1750-1367890
ID
WWPN
===============================================================
I0000 500507630E01FC00 Online Fibre Channel-LW SCSI-FCP 0
I0001 500507630E03FC00 Online Fibre Channel-LW -
I0002 500507630E05FC00 Online Fibre Channel-LW SCSI-FCP 0
I0003 500507630E07FC00 Online Fibre Channel-LW -
I0100 500507630E81FC00 Online Fibre Channel-LW SCSI-FCP 0
I0101 500507630E83FC00 Online Fibre Channel-LW -
I0102 500507630E85FC00 Online Fibre Channel-LW SCSI-FCP 0
I0103 500507630E87FC00 Online Fibre Channel-LW -
Date/Time: 24 de Maio de 2005 14h40min36s BRT IBM DSCLI Version: X.X.X.X
Name ID
============================================================================
-
IBM.1750-1312345 IBM.1750-1312345 511
exit status of dscli = 0
Attention: The DS CLI script can contain only DS CLI commands. Using shell commands
results in process failure. You can add comments to the scripts prefixed by the number
sign (#).
When logging in to the DS CLI, you can use the host name or the IP address of the DS
SMC.
4.7.3 Interactive mode
Use the DS CLI interactive command mode when you have multiple transactions to process
that cannot be incorporated into a script. The interactive command mode provides a history
function that makes repeating or checking prior command usage easy to do.
1. Log on to the DS CLI application at the directory where it is installed.
32
IBM System Storage DS6000 Series: Copy Services with IBM System z
State Type
Storage Unit
Model WWNN
500507630EFFFC6F Online Enabled
topo
portgrp
0
0
0
0
State ESSNet