beautypg.com

Using the commands, Aliases – Allied Telesis AT-8700XL Series Switch User Manual

Page 17

background image

Getting Started with the Command Line Interface (CLI)

17

Software Release 2.6.1
C613-02030-00 REV B

Using the Commands

You control the switch with commands described in this document and in the
AT-8700XL Series Software Reference. While the keywords in commands are not
case sensitive, the values entered for some parameters are (especially
passwords). The switch supports command line editing and recall. Command
line editing functions and keystrokes are shown in Table 2 on page 17.

The switch assumes that the width of the terminal screen is 80 characters, and
performs command line wrapping at the 80th column regardless of the setting
of the terminal. To execute a command the cursor does not need to be at the
end of the line. The default editing mode is insert mode. Characters are
inserted at the cursor position and any characters to the right of the cursor are
pushed to the right to make room. In overstrike mode, characters are inserted
at the cursor position and replace any existing characters.

Commands are limited to 1000 characters, excluding the prompt. Path names
of up to 256 characters, including file names, and file names up to 16 characters
long, with extensions of 3 characters, are supported.

Aliases

The command line interface supports aliases. An alias is a short name for an
often-used longer character sequence. When the user presses [Enter] to execute
the command line, the command processor first checks the command line for
aliases and substitutes the replacement text. The command line is then parsed
and processed normally. Alias substitution is not recursive—the command line
is scanned only once for aliases.

Aliases are created and destroyed using the commands:

ADD ALIAS=name STRING=substitution

DELETE ALIAS=name

Table 2: Command line editing functions and keystrokes .

Function

VT100 Terminal

Dumb terminal

Move cursor within command line

←, →

Not available

Delete character to left of cursor

[Delete] or [Backspace]

[Delete] or [Backspace]

Toggle between insert/overstrike

[Ctrl/O]

Not available

Clear command line

[Ctrl/U]

[Ctrl/U]

Recall previous command

↑ or [Ctrl/B]

[Ctrl/B]

Recall next command

↓ or [Ctrl/F]

[Ctrl/F]

Display command history

[Ctrl/C] or
SHOW PORT HISTORY

[Ctrl/C]
or SHOW PORT HISTORY

Clear command history

RESET PORT HISTORY

RESET PORT HISTORY

Recall matching command

[Tab] or [Ctrl/I]

[Tab] or [Ctrl/I]