01-11-2022 04:07 AM
Hi community,
IOS Version 15.2(4)E7
I am trying to use parser view to restrict some commands for user.
For example: allow user only two actions - create vlan and name it
Parser-view configured like this:
parser view senior secret 5 $1$UgXf$K/RFpnFQPntcfI0gA8p.K1 commands configure include all vlan commands exec include configure terminal commands exec include configure commands exec include all show
all—A "wildcard" that allows every command in a specified configuration mode that begins with the same keyword or every subinterface for a specified interface to be part of the view.
I can create vlan, but can't name it:
switch>show privilege Currently in View Context with view 'senior' switch>? Exec commands: <1-99> Session number to resume configure Enter configuration mode enable Turn on privileged commands exit Exit from the EXEC show Show running system information switch>configure terminal Enter configuration commands, one per line. End with CNTL/Z.
switch(config)>vlan 99 switch(config-vlan)>? VLAN configuration commands: exit Apply changes, bump revision number, and exit mode switch(config-vlan)>name test ^ % Invalid input detected at '^' marker.
What am I doing wrong?
01-11-2022 04:27 AM
not sure what device is this, you need enable and do config t to get that work.
>enable
#config t
01-11-2022 06:34 PM
Please, read my post properly.
I don't need to enable, i'm already in view:
switch>show privilege Currently in View Context with view 'senior'
conf t is there, i'm able to create vlan, but can't name it
switch>configure terminal Enter configuration commands, one per line. End with CNTL/Z. switch(config)>vlan 99
Device: cisco WS-C4900M
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide