Using the DS CLI script command mode

Use the DS CLI script command mode if you want to issue 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.

Consider the following when using the DS CLI script command mode:
Note: It is not the intent of this instruction to tell you how to write a script. An example script is displayed for your use as a guide.
You can issue the DS CLI script from the command prompt at the same time that you provide your login information.
  1. Enter the script name at the command prompt using the following format:
    dscli> -hmc1 mtc032h.storage.tucson.ibm.com -user admin 
    -passwd password -script ~/bin/mkpprcpairs
    Note: If you are using i5/OS and have already logged on to the DS CLI application, you invoke the script mode using the following format:
    DSCLI SCRIPT('/myscript') USER(admin) OUTPUT('/outfile')
  2. Wait for the script to process and provide a report regarding the success or failure of the process.
The following is an example of a script that could be used to establish remote mirror and copy relationships for volume pairs.
mkpprc -dev IBM.1750-1303561 -remotedev IBM.1750-7504491 -type mmir 1000-103F:2300-233F
mkpprc -dev IBM.1750-1303561 -remotedev IBM.1750-7504491 -type gcp 1100-113F:2340-237F
mkpprc -dev IBM.1750-1303561 -remotedev IBM.1750-7504491 -type mmir 1800-187F:2800-287F
mkpprc -dev IBM.1750-1303561 -remotedev IBM.1750-7504491 -type gcp 1200-127F:2500-257F
mkpprc -dev IBM.1750-1303561 -remotedev IBM.1750-7504491 -type mmir 1040-1054:2700-2714
mkpprc -dev IBM.1750-1303561 -remotedev IBM.1750-7504491 -type gcp 1055-107F:2400-242A
mkpprc -dev IBM.1750-1303561 -remotedev IBM.1750-7504491 -type mmir 1140-117F:2600-263F
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2004, 2007. All Rights Reserved.