Entering A String Or Text Type Value For An Argument; Abbreviating Commands; Configuring And Using Command Keyword Aliases - HP 6125XLG Configuration Manual

Blade switch fundamentals configuration guide
Table of Contents

Advertisement

Entering a string or text type value for an argument

Generally, a string type argument value can contain any printable character (in the ASCII code range of
32 to 126) other than the question mark (?), quotation mark ("), backward slash (\), and space, and a
text type argument value can contain any printable character other than the question mark. However, a
specific argument might have more requirements. For more information about the specific requirements
for an argument, see the relevant command reference.

Abbreviating commands

You can enter a command line quickly by entering incomplete keywords that uniquely identify the
complete command. In user view, for example, commands starting with an s include startup
saved-configuration and system-view. To enter the command system-view, you only need to type sy. To
enter the command startup saved-configuration, type st s.
You can also press Tab to complete an incomplete keyword.

Configuring and using command keyword aliases

The command keyword alias function allows you to replace the first keyword of a non-undo command or
the second keyword of an undo command with your preferred keyword when you execute the command.
For example, if you configure show as the alias for the display keyword, you can enter either show clock
or display clock to execute the display clock command.
Usage guidelines
After you successfully execute a command by using a keyword alias, the system saves the keyword,
instead of its alias, to the running configuration.
If a string you entered for a command partially matches an alias and a keyword, the command
indicated by the alias is executed. To execute the command indicated by the keyword, enter the
complete keyword.
If a string you entered for a command partially matches multiple aliases, the system displays an
error message.
If you enter a string that partially matches an alias and a keyword and press Tab, the keyword
indicated by the alias is displayed. Pressing Tab again displays the keyword.
Configuration procedure
To configure a command keyword alias:
Step
1.
Enter system view.
2.
Enable the command keyword
alias function.
3.
Configure a command
keyword alias.
Command
system-view
command-alias enable
command-alias mapping
cmdkey alias
5
Remarks
N/A
By default, the command keyword
alias function is disabled.
By default, no command keyword
alias is configured.
You must enter the cmdkey and alias
arguments in their complete form.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents