H3C S3100 Series Command Manual page 934

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

View
System view
Default Level
2: System level
Parameters
cmdkey: The complete form of the first keyword of an existing non-undo command or the second
keyword of an undo command for which an alias will be configured.
alias: Specifies the command alias, which can be neither the same with the first keyword nor with the
starting part of an existing command on the switch.
Description
Use the command-alias mapping command to configure command aliases.
Use the undo command-alias mapping command to delete command aliases.
By default, a command has no alias.
When configuring a command alias, the cmdkey argument must be a complete keyword; otherwise,
the system prompts for incomplete keyword or nonexistent keyword, and the operation will fail.
At present, the device supports up to 20 command aliases. In addition, different commands must
be configured with different aliases.
Examples
# Enable the command alias function on the switch and configure command aliases by specifying show
as the replacement of the display keyword.
<Switch> system-view
[Switch] command-alias enable
[Switch] command-alias mapping display show
After the above configuration, the display commands have their aliases, and their original forms are still
effective. For example, if the original command is display clock, now its alias is show clock and you
can input either the alias or the original form display clock to view the system time and date.
display command-alias
Syntax
display command-alias
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display command-alias command to display defined command aliases and the corresponding
commands.
1-10

Advertisement

Table of Contents
loading

Table of Contents