32
IBM System Storage DS6000 Series: Copy Services with IBM System z
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 State Type topo portgrp
===============================================================
I0000 500507630E01FC00 Online Fibre Channel-LW SCSI-FCP 0
I0001 500507630E03FC00 Online Fibre Channel-LW - 0
I0002 500507630E05FC00 Online Fibre Channel-LW SCSI-FCP 0
I0003 500507630E07FC00 Online Fibre Channel-LW - 0
I0100 500507630E81FC00 Online Fibre Channel-LW SCSI-FCP 0
I0101 500507630E83FC00 Online Fibre Channel-LW - 0
I0102 500507630E85FC00 Online Fibre Channel-LW SCSI-FCP 0
I0103 500507630E87FC00 Online Fibre Channel-LW - 0
Date/Time: 24 de Maio de 2005 14h40min36s BRT IBM DSCLI Version: X.X.X.X
Name ID Storage Unit Model WWNN State ESSNet
============================================================================
- IBM.1750-1312345 IBM.1750-1312345 511 500507630EFFFC6F Online Enabled
exit status of dscli = 0
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.
Note: When logging in to the DS CLI, you can use the hostname or the IP address of the
DS SMC.
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.
Summary of Contents for System storage DS6000 Series
Page 2: ......
Page 24: ...xxii IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 38: ...14 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 40: ...16 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 60: ...36 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 64: ...40 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 66: ...42 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 86: ...62 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 92: ...68 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 144: ...120 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 152: ...128 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 204: ...180 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 208: ...184 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 224: ...200 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 242: ...218 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 260: ...236 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 288: ...264 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 290: ...266 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 358: ...334 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 432: ...408 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 434: ...410 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 438: ...414 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 454: ...430 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 456: ...432 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 480: ...456 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 490: ...466 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 524: ...500 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 552: ...528 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 560: ...536 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 564: ...540 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 574: ...550 IBM System Storage DS6000 Series Copy Services with IBM System z...
Page 577: ......