Action
Function
Press
<PageUp>
Displays the previous page.
Press
<PageDown>
Displays the next page.
CLI Configurations
Configuring Command Aliases
You can replace the first keyword of a command supported by the device with your preferred keyword
by configuring the command alias function. For example, if you configure
show
as the replacement of
the
display
keyword for each
display
command, you can input the command alias
show xx
to execute
the
display xx
command.
Note the following when you configure command aliases:
z
When you type a command alias, the system displays and saves the command in its original format
instead of its alias. That is, you can define and use a command alias but the command is not saved
and restored in its alias.
z
When you define a command alias, the
cmdkey
and
alias
arguments must be in complete form.
z
With the command alias function enabled, when you type an incomplete keyword, which partially
matches both a defined alias and the keyword of a command, the alias wins; to execute the
command whose keyword partially matches your input, you must type the complete keyword.
When you input a character string that matches multiple aliases partially, the system prompts you
for various matching information.
z
If you press
Tab
after you type the keyword of an alias, the original format of the keyword is
displayed.
z
You can replace only the first keyword of a non-undo command instead of the complete command;
and you can replace only the second keyword of an
undo
command.
Follow these steps to configure command aliases:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable the command alias
function
command-alias enable
Required
Disabled by default, that
is, you cannot configure
command aliases.
Configure command
aliases
command-alias mapping cmdkey alias
Required
Not configured by default.
To display the configured command aliases, use the
display command-alias
command.
1-16