You are here: PS Series CLI Reference > Introduction to the CLI > Entering CLI Commands
The CLI allows you to abbreviate a command or parameter if the abbreviation uniquely identifies the command or parameter.
For example, the following commands are identical:
|
> volume select dbvol1 > vol sel dbvol1 |
These commands are also identical:
|
> cli-settings displayinMB on > cli-settings display on |
In addition, you can press the <Tab> key to automatically complete a command after entering a unique portion of the command. This can be useful in completing long commands or subcommands.
For example,
|
> grp<tab> |
will be completed as:
|
> grpparams |
In some cases, you can enter subcommand mode and execute multiple commands within this mode. Subcommand mode simplifies command entry when you are entering repetitive commands on the same component. You can perform multiple modifications to the group, a volume, or a member without entering long repetitive commands. Subcommand mode is available with the grpparams command and with all commands that use the select subcommand.
For example, you can enter the grpparams command without any parameters and press the <Enter> key. At the resulting grpparams prompt, enter the desired parameters, pressing the <Enter> key after each one. When you are done, enter the exit command to exit subcommand mode.
With commands that use the select subcommand, press the <Enter> key after each component selection. You can then enter the desired parameters.
The following is an example of using the volume create command to create a volume and then using subcommand mode to specify a description for the volume and change the volume permission to read-only.
|
> volume create dbvol 100 > volume select dbvol volume dbvol> description "Staff Database" volume dbvol> read-only volume dbvol> exit |
Note: There can be multiple levels of subcommand mode when a command uses multiple select subcommands. Use the exit command to bring you up one level at a time. Use the exit all command to exit subcommand mode.
If you do not want to use subcommand mode, simply specify the information on individual command lines. The following example uses two command lines to specify a description and read-only permission for a volume.
|
> volume select dbvol description "Staff Database" > volume select dbvol read-only |
If you are using the CLI to delete a group component, you will be prompted to confirm that you want to execute the command, as shown here:
|
> volume delete dbvol There are active iSCSI connections to the volume. Deleting the volume will terminate these connections. Do you really want to delete the volume? (y/n) [n] y |
In addition, if you are using the CLI to set or modify a password, you will be prompted to enter the password and then to reenter the password for confirmation, as shown in the following example.
|
> account create newadmin Enter password: Retype password: |
The password is not displayed on the screen.
In addition, some commands, such as reset, require you to confirm that you want to perform the requested action.