Command Alias Configuration Commands
command-alias enable
Syntax
command-alias enable
undo command-alias enable
View
System view
Default Level
2: System level
Parameters
None
Description
Use the command-alias enable command to enable the command alias function.
Use the undo command-alias enable command to disable the command alias function.
By default, the command alias function is disabled, that is, you cannot configure command aliases.
Examples
# Enable the command alias function.
<Sysname> system-view
[Sysname] command-alias enable
command-alias mapping
Syntax
command-alias mapping cmdkey alias
undo command-alias mapping cmdkey
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.
1-10