Chapter 4 CLI Privilege Classification
1. View all commands beginning with show with user privilege
level of 12.
ZXR10#show ?
privilege
Show current privilege level
The result shows that only show privilege command is dis-
played.
Note:
If there is no command with privilege level 12, after the user
inputs “?” for help, no command will be displayed.
2. Configure the user privilege level to 15.
ZXR10#enable
Password:
ZXR10#
3. Configure the privilege level to 12 for all commands beginning
with
show interface
.
ZXR10#configure terminal
ZXR10(config)#privilege show all level 12 show interface
4. Go back to privilege level 12.
ZXR10#enable 12
ZXR10#
Note:
When the user goes back to a lower privilege level from a
higher privilege level, the user does not need to input enabling
password.
5. View all commands beginning with
show
with user privilege
level of 12.
ZXR10#show ?
interface
Show interface property and statistics
privilege
Show current privilege level
The result shows that
show interface
command is added to
commands with privilege level of 12.
Use
show interface
command to view interface information,
as shown below.
ZXR10#show interface gei_1/2
gei_1/2 is up,
line protocol is up
Description is none
The port is electric
Duplex full
Mdi type:auto
VLAN mode is hybrid, pvid 1
MTU 1500 bytes
BW 1000000 Kbits
Last clearing of "show interface" counters never
120 seconds input
rate:
0 Bps,
0 pps
120 seconds output rate:
5 Bps,
0 pps
......
Confidential and Proprietary Information of ZTE CORPORATION
41