beautypg.com

Getting command line help, Aliases – Allied Telesis AR400 Series Router User Manual

Page 19

background image

Getting Started with the Command Line Interface (CLI)

19

Software Release 2.6.1
C613-02021-00 REV D

The router 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. Pathnames 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

Getting Command Line Help

Online help is available for all router commands. A multilingual, language-
independent online help facility provides help information via the command:

HELP [topic]

If a topic is not specified, a list of available topics is displayed. The HELP
command displays information from the system help file stored in FLASH
memory. The help file uses a simple mark-up language to identify topics,
access level (USER or MANAGER) and help text. Both standard ASCII and
Unicode character encodings are supported. Alternate help files can be
uploaded and stored in FLASH, then activated using the command:

SET HELP=helpfile

To display the current help file, enter the command:

SHOW SYSTEM

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]

Table 2: Command line editing functions and keystrokes (Continued).

Function

VT100 Terminal

Dumb terminal