Setting cli configuration modes, Setting cli configuration modes -12 – Enterasys Networks Security Router X-PeditionTM User Manual

Page 48

Advertising
background image

Utilizing the Command Line Interface

2-12 Managing the XSR

Command Recall: Non-help commands are stored in the command history list buffer up to the
last 32 commands. You can recall and edit previous commands using shortcut keys. For
example:

Ctrl

+

p/Ctrl

+

n

will list the previous/next command respectively and can be

applied repeatedly. The up-arrow or down-arrow keys provide the same feature if your
terminal supports these keys.

Tab Completion: Pressing the

TAB

key or

CTRL

+

I

completes a command. In case of an

ambiguous match, the word is completed up to the character which leads to ambiguity. For
example,

hostname

and

hostDos

share the letters

host

, so tab completion completes the

“command”

ho

to

host

.

Carriage Return/Enter: Pressing the carriage return/ENTER key signals the end of a CLI
command.

Help Symbol: At any point you can enter the

?

character to prompt for a list of possible

commands/parameters at a particular mode.

Error: Proper error messages are displayed if the command could not be issued due to syntax
errors or invalid values made by the user.

Typing these characters will produce output as follows:

XSR#showFIioLLJl
XSR#showFIioLLJl

^

% invalid input detected at '^' marker
XSR#

CLI Terminal Editing Command Keys: Refer to the following table for these useful shortcuts.

Setting CLI Configuration Modes

The CLI provides modes of operation permitting a subset of commands to be issued from each
mode. Also, you can issue any command and acquire any mode if the command entered or mode
acquired subscribes to the same parent. For example, you can issue the

interface serial

command at Crypto Map mode because both Serial Interface and Crypto Map modes subscribe to
Global (config) mode.

Table 2-3

describes a few primary modes of operation.

Table 2-2 CLI Shortcuts

Command

Description

Command

Description

Ctrl

+

a

Move cursor to beginning of line

Ctrl

+

p

Previous CLI command in history

Ctrl

+

b

Move cursor back 1 character

Ctrl

+

r

Echo current line

Ctrl

+

c

Same as the CLI end command

Ctrl

+

u

Delete all characters before cursor

Ctrl

+

d

Delete 1 character after cursor

Ctrl

+

w

Delete 1 word before cursor

Ctrl

+

e

Move cursor to end of line

Ctrl

+

x

Delete all characters before cursor

Ctrl

+

f

Move cursor forward 1 character

Ctrl

+

y

Restores the most recently deleted item

Ctrl

+

h

Delete 1 character before cursor

Ctrl

+

z

Same as the CLI end command

Ctrl

+

I

Tab completion

Del

Delete a character

Ctrl

+

k

Delete all characters after cursor

Esc

+

b

Move cursor back 1 word

Ctrl

+

l

Echo current line

Esc

+

d

Delete to end of word at cursor

Ctrl

+

n

Next CLI command in history

Esc

+

f

Move cursor forward 1 word

Advertising