
a single instance of the DS CLI interpreter. Comments can be placed in the script if they are prefixed by a hash (#). A simple example of a script mode script is shown in Example
Example
#This script issues the 'lsuser' command lsuser
#end of script
In this example, the script was placed in a file called listAllUsers.cli, located in the scripts folder within the DS CLI folder. It is then executed by using the dscli
Example
C:\Program Files\IBM\dscli> dscli
Name Group
===============
admin admin
C:\Program Files\IBM\dscli>
It is possible to create shell or Visual Basic scripts that combine both script mode and single commands.
10.7.2 Syntax conventions
The DS CLI uses symbols and conventions that are standard in
10.7.3 User assistance
The DS CLI is designed to include several forms of user assistance. The main form of user assistance is via the help command. Examples of usage include:
help | Lists all available DS CLI commands. |
help
help
If the user is interested in more details about a specific DS CLI command, they can use
Example
dscli> help -s mkflash
mkflash | The mkflash command initiates a |
target volumes.
In Example
Chapter 10. DS CLI 205