cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1606
Views
0
Helpful
2
Replies

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

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

View solution in original post

2 Replies 2

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

Hi Karsten,

Love u man... Thanks a lot.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: