Configuring Command Aliases; Configuring Cli Hotkeys - HP A5830 Series Configuration Manual

Hide thumbs Also See for A5830 Series:
Table of Contents

Advertisement

Press Tab to have an incomplete keyword automatically completed.

Configuring command aliases

The command alias function allows you to replace the first keyword of a command with your preferred
keyword. For example, if you configure show as the replacement for the display keyword, then to execute
the display xx command, enter the command alias show xx.
Note the following guidelines when configuring command aliases:
When you enter a command alias, the system displays and saves the command in its original format
instead of its alias. In other words, define and use a command alias but the command is not
restored in its alias format.
When you define a command alias, the cmdkey and alias arguments must be in their complete form.
When you enter an incomplete keyword that partially matches both a defined alias and the keyword
of a command and the command alias function is enabled, the alias takes precedence. To execute
the command whose keyword partially matches your entry, enter the complete keyword. When you
enter a character string that partially matches multiple aliases, the system gives you prompts.
If you press Tab after you enter an alias keyword, the original format of the keyword is displayed.
Replace the first keyword of a non-undo command instead of the complete command. Replace the
second keyword of undo commands.
Task...
1.
Enter system view.
2.
Enable the command alias
function
3.
Configure a command alias

Configuring CLI hotkeys

The hotkeys in
using to interact with the switch, the hotkeys defined by the terminal software take effect.
By default, the Ctrl+G, Ctrl+L and Ctrl+O hotkeys are associated with pre-defined commands as defined
below, but the Ctrl+T and Ctrl+U hotkeys are not.
Ctrl+G corresponds to the display current-configuration command.
Ctrl+L corresponds to the display ip routing-table command.
Ctrl+O corresponds to the undo debugging all command.
Command...
system-view
command-alias enable
command-alias mapping cmdkey
alias
Table 2
are defined by the switch. If the same hotkeys are defined by the terminal software
Remarks
Required.
Disabled by default: You cannot
configure command aliases.
Required.
Not configured by default.
5

Advertisement

Table of Contents
loading

Table of Contents