20
Chapter 3 Using the CLI
3.1
General Guidelines
The following sections describe general guidelines to follow when issuing CLI command lines.
3.1.1
Understanding Commands
Commands are organized into two categories, global action commands and context-specific
commands. All CLI commands are case-insensitive. For readability, the commands in this
guide are shown with a mix of upper-case and lower-case characters.
3.1.2
Global Action Commands
Global action commands can be used within all contexts. For example, the
help
command is
a global action command. Issuing this command displays all of the global action and context-
specific commands available in the CLI. For a list of all the global action commands, see
Table 4-1 on page 34.
3.1.3
Context-Specific Commands
Context-specific commands can be used within the current context only. Context-specific
commands are prefaced by the global action command
Do
,
Show
, or
Set
. The following
example uses the global command
Show
and the context-specific command
diskList
to
get the DiskList information.
192.168.59.25 ::
Show diskList
←
typed by user
ID = 0
←
returned by CLI
Status = OK
←
returned by CLI
Disks = 4 Disks
←
returned by CLI
For a list of all the context-specific commands, see Chapter 5.
3.1.4
Abbreviating Commands
The CLI lets you abbreviate context-specific command keywords to their fewest unique
characters. For example, instead of entering the full command
Show diskList
, you can
type
Show d
. If you type an abbreviated command that can match more than one
command, an error message is returned and you must retype the command, entering
additional characters to make the command unambiguous to the CLI.
192.168.59.25 ::
Show d
←
typed by user
ID = 0
←
returned by CLI
Status = OK
←
returned by CLI
Disks = 4 Disks
←
returned by CLI
Summary of Contents for xStack Storage DSN-4000 Series
Page 6: ...vi Preface...
Page 42: ...32 Chapter 3 Using the CLI This Page Left Intentionally Blank...
Page 56: ...46 Chapter 4 Global Action Commands This Page Left Intentionally Blank...
Page 86: ...76 Chapter 5 Supported CLI Commands and Properties This Page Left Intentionally Blank...
Page 97: ......