2
Default
A command keyword has no alias.
Views
System view
Default command level
2: System level
Parameters
cmdkey
: Specifies the complete form of the first keyword of a non-undo command, or the second
keyword of an
undo
command.
alias
: Specifies an alias for the keyword. It must be different from the first keyword of any non-undo
command.
Usage guidelines
Command keyword aliases take effect only after you enable the command keyword alias function.
Examples
# Define
show
as the alias of the
display
keyword.
<Sysname> system-view
[Sysname] command-alias mapping display show
After you configure the alias, you can enter
show
to execute a
display
command. For example, you can
enter
show clock
to execute the
display clock
command.
# Delete the alias of the
display
keyword.
<Sysname> system-view
[Sysname] undo command-alias mapping display
command-privilege
Use
command-privilege
to assign a level for a specific command in a view.
Use
undo command-privilege
to restore the default.
Syntax
command-privilege level
level
view
view
command
undo command-privilege view
view
command
Default
Each command in a view has a specified level.
Views
System view
Default command level
3: Manage level
Parameters
level
level
: Specifies a command level in the range of 0 to 3.
view
view
: Specifies a view.