3-6
Parameters
cmdkey
: The complete form of the first keyword of a command for which an alias will be configured.
alias
: Specifies the command alias, which cannot be the same with the first keyword of an existing
command.
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.
Examples
# Configure command aliases by specifying
show
as the replacement of the
display
keyword.
<Sysname> system-view
[Sysname] command-alias mapping display show
After the above configuration, the
display
commands have their aliases. For example, if the original
command is
display clock
, now its alias is
show clock
and you can input the alias to view the system
time and date.
# Delete the command aliases by canceling the replacement of the
display
keyword.
<Sysname> system-view
[Sysname] undo command-alias mapping display
command-privilege level
Syntax
command-privilege level level view view
command
undo command-privilege view view
command
View
System view
Default Level
3: Manage level
Parameters
level level
: Command level, in the range 0 to 3.
view view
: Specifies a view. The value
shell
of the argument
view
represents user view. The specified
view must be the view to which the command provided by the
command
argument belongs; for the
corresponding view, refer to the "View" section of the specified command.
command
: Command to be set in the specified view.
Description
Use the
command-privilege
command to assign a level for the specified command in the specified
view.
Use the
undo command-privilege view
command to restore the default.
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...