Use the DS CLI single-shot command mode if you want to
enter an occasional command but do not want to keep a history of the
commands that you entered previously.
About this task
You must supply the login information and enter
the command that you want to process at the same time. Complete
the following steps to use the single-shot mode:
Procedure
- Use the following command format to start a DS CLI session
(Windows operating system):
dscli -hmc1 192.168.30.15 -user admin -passwd my_password lssi -s -fullid
-hdr off
An example of this same command in IBM i
without the report
delimiters:
DSCLI SCRIPT(*NONE) HMC1('192.168.30.15') USER(admin) PASSWORD(my_password)
DSCLI(lssi)
This command demonstrates the use of the
lssi command with the
-s parameter. Use this command to view the storage image IDs for your storage
complex. The storage image ID consists of
the manufacturer name (IBM), the
machine type (2107
or 1750) and the serial number.
Notes:
- The command example uses the -fullid DS CLI command parameter. The -fullid command parameter generates
fully qualified IDs, which include the storage image ID, for every ID that is displayed in the
command output.
- The command example also uses the -hdr
off command parameter, which turns off the header that is
associated with the report that is generated from the lssi command.
- Almost every DS CLI command requires the use of the storage image ID.
You can set it as an environment variable by setting devid in the profile file,
or by setting devid by using the setenv command. If you choose
not to set it, a default devid is used on systems where the management console is
aware of only one storage image. If you provide the -dev
(storage_image_ID) parameter in commands, the value that you type takes priority
over the devid environment variable. If you specify a full ID that contains the
storage image ID, the storage image ID that you specify takes priority over the value from the
-dev (storage_image_ID) parameter and over the
devid environment variable.
- Wait for the command to process. The following type of
report is generated to list the storage image IDs that are associated
with the storage complex.
- IBM.2107-75FA111
- IBM.2107-75FA112