maguanghua2013 发表于 2018-4-3 17:48
可以吧show run添加到级别1里面
privilege exec level 1 show running
谢谢你的解答,我尝试配置的过程如下,给privilege 1允许其show run的命令后尝试show run,显示的内容为空,无法查看完整的show run内容
Wsjy-C2960x-111-7#show run | in user
username test password 7 03105E18125E731F
Wsjy-C2960x-111-7#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Wsjy-C2960x-111-7(config)#privilege exec level 1 show running
Wsjy-C2960x-111-7(config)#end
Wsjy-C2960x-111-7#wr
Building configuration...
000040: Apr 4 17:53:38.949 Beijing: %SYS-5-CONFIG_I: Configured from console by test on console[OK]
Wsjy-C2960x-111-7#
Wsjy-C2960x-111-7#exit
Wsjy-C2960x-111-7 con0 is now available
Press RETURN to get started.
User Access Verification
Username: test
Password:
Wsjy-C2960x-111-7>show run
Building configuration...
Current configuration : 197 bytes
!
! Last configuration change at 17:53:38 Beijing Wed Apr 4 2018 by test
! NVRAM config last updated at 17:53:39 Beijing Wed Apr 4 2018 by test
!
boot-start-marker
boot-end-marker
!
!
!
!
!
!
end
Wsjy-C2960x-111-7>
Wsjy-C2960x-111-7>