09-02-2013 02:04 AM
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.
Solved! Go to Solution.
09-02-2013 02:09 AM
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
09-02-2013 02:09 AM
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
09-02-2013 02:14 AM
Hi Karsten,
Love u man... Thanks a lot.
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