cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
768
Views
15
Helpful
2
Replies

Parser view gives permission to commands incorrectly

savamoti
Level 1
Level 1

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?

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

not sure what device is this, you need enable and do config t to get that work.

>enable

#config t

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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

Review Cisco Networking for a $25 gift card