Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

EEM to prevent a user from Configuring fa0/1

Hi Guys,

I was testing out a few scripts and one of them does not seem to work. I did understand why they dont work but needed an alternate solution.

Objective: DO NOT ALLOW USERS TO ENTER INTERFACE CONFIGURATION MODE FOR FA0/1

Script that I have created looks as below

event manager applet Disablef01

event cli pattern "int f 0/1" sync no skip yes occurs 1 

action 8.0 syslog msg " Can not configure this interface"

I understand that Fa0/1 is not a command but is there an alternate solution

Thanks in Advance.

1 ACCEPTED SOLUTION

Accepted Solutions
VIP Purple

Re: EEM to prevent a user from Configuring fa0/1

you have to write your CLI-pattern in the full version and not abbreviated. Use the following script:

event manager applet Disablef01

  event cli pattern "interface FastEthernet0/1" sync no skip yes occurs 1

  action 8.0 syslog msg " Can not configure this interface"

-- 
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni

2 REPLIES
VIP Purple

Re: EEM to prevent a user from Configuring fa0/1

you have to write your CLI-pattern in the full version and not abbreviated. Use the following script:

event manager applet Disablef01

  event cli pattern "interface FastEthernet0/1" sync no skip yes occurs 1

  action 8.0 syslog msg " Can not configure this interface"

-- 
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni

New Member

EEM to prevent a user from Configuring fa0/1

Hi Karsten,

Love u man... Thanks a lot.

402
Views
0
Helpful
2
Replies
CreatePlease to create content