D-Link DSN-540 CLI User's Guide for DSN-1100-10 - Page 30

General Guidelines, Understanding Commands, Global Action Commands, Context-Specific Commands,

Page 30 highlights

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 contextspecific 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 ID = 0 Status = OK Disks = 4 Disks ← typed by user ← returned by CLI ← returned by CLI ← 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 ID = 0 Status = OK Disks = 4 Disks ← typed by user ← returned by CLI ← returned by CLI ← returned by CLI 20 Chapter 3 Using the CLI

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97

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