
#Default target Storage Image ID devid:
An example of a command where the password is entered in plain text is shown in
Example
Example
C:\Program Files\IBM\dscli>dscli
=============
admin admin
csadmin op_copy_services exit status of dscli = 0
C:\Program Files\IBM\dscli>
Issuing a DS CLI command and scripting it
Having created a userid and preferably a password file, and then having edited the default profile, it is now possible to issue DS CLI commands without logging onto the DS CLI interpreter. An example is shown in Example
Example
anthony@aixsrv:/opt/ibm/dscli > dscli mkflash
anthony@aixsrv:/opt/ibm/dscli >
The command can also be placed into a file and that file made executable. An example is shown in Example
Example 10-19 Creating an executable file
anthony@aixsrv:/home >echo “/opt/ibm/dscli/dscli mkflash
anthony@aixsrv:/home >chmod +x flash1005 anthony@aixsrv:/home >./flash1005
anthony@aixsrv:/home >CMUC00137I mkflash: FlashCopy pair 1004:1005 successfully created. anthony@aixsrv:/home >
Finally, the command could be issued using script mode. An example of creating and using script mode is shown in Example
Example 10-20 Using script mode
arielle@aixsrv:/opt/ibm/dscli >echo “mkflash
arielle@aixsrv:/opt/ibm/dscli >dscli
arielle@aixsrv:/opt/ibm/dscli >
Chapter 10. DS CLI 215