EM316LNXNM-OT
Management Basics
PN 1275005-100 Rev E6
20
5.4.2. Command Syntax
To execute a command at the command prompt, type the command followed by the parameters required
in the syntax. Use online help to display the syntax for a command by entering the commnand followed by
a "?". Using an incorrect number of parameters displays an error message with correct command syntax.
<Up> and <Down> arrow keys display the history of commands entered during the current CLI session.
The <Enter> key completes and executes each command entered.
The <Backspace> and <Delete> keys allow editing of entered commands before they are executed.
Depending on the terminal type, <Delete> may act as a backspace rather than deleting the character at
the cursor.
There are also several special keystrokes.
Table 5.1. Special CLI Keystrokes
Key
Function
<Enter>
Enter the command
<Up>
Previous command - in the history of commands
<Down>
Next command - in the history of commands
<^C> (Ctrl+C)
Cancel command
?
Context sensitive list of available commands and on-line help
!
Begin a comment. Any text after this to the end of the line is ignored
<Tab>
Command completion (see below)
<Tab><Tab>
Command completion (see below)
The <Tab> key completes partially entered commands. It searches the available CLI command list for
commands that begin with the text entered so far on the command line. For a single match, the full
command is completed and displayed. For multiple matches, the system beeps and displays as much text
as is shared by all the commands that match the text entered. More text may be entered to narrow the
command match selections, or you may press <Tab> again to list all the commands that match beginning
of the command entered so far.
For example, suppose that the command line interface consisted only of the commands "
telnet
"
and "
terminal
". If you type "
t
<Tab><Tab>", the system displays two commands: "
telnet
" and
"
terminal
".
fiberdriver# t<Tab><Tab>
telnet terminal
fiberdriver# t
If you continue by typing "
el
<Tab>", then the system would complete the command "telnet".
Similarly, a command may be abbreviated by typing enough characters to make it unique. Using the
example above, you could type "
tel 192.168.2.237
", and the CLI would execute "
telnet
192.168.2.237
" because no other command begins with "tel".
The CLI maintains a history list of commands that have been entered by the user. To move backward
through this list, use <Up> key. To move forward, use <Down> key.
Содержание EM316LNXNM-OT
Страница 174: ...EM316LNXNM OT Appendix PN 1275005 100 Rev E6 167 Access Read only CLI command volt monitor 4...
Страница 181: ......