06-11-2019 01:48 PM
Hello,
I have created the following EEM but it never triggers. Can anyone see where I might have made a mistake in my syntax?
Here is what I have used for the trigger:
*Jun 11 13:46:45.177: %SNMP-3-INPUT_QFULL_ERR: Packet dropped due to input
queue full
*Jun 11 13:46:52.865: %SNMP-3-INPUT_QFULL_ERR: Packet dropped due to input
queue full
*Jun 11 13:47:04.238: %SNMP-3-INPUT_QFULL_ERR: Packet dropped due to input
queue full
______________________My EEM____________________________
event manager applet SNMP_Restart
event syslog pattern "%SNMP-3-INPUT_QFULL_ERR: Packet dropped due to input queue full"
action 1.0 cli command "enable"
action 1.5 cli command "config t"
action 2.0 cli command "no snmp-server"
action 2.5 cli command "end"
action 3.0 cli command "config t"
action 3.1 cli command "snmp-server group xxx v3 priv"
action 3.2 cli command "snmp-server community xxxxx RO SNMP-ACL"
action 3.3 cli command "snmp-server community xxxxx RO SNMP-ACL"
action 3.4 cli command "snmp-server host x.x.x.x version 3 priv xxx"
action 3.5 syslog msg "SNMP restarted via EEM"
action 3.6 cli command "end"
action 4.0 cli command "wr mem"
06-11-2019 10:26 PM - edited 06-11-2019 10:28 PM
Hi
The script looks fine to me.
It may need "authorization bypass".
event manager applet SNMP_Restart authorization bypass
hope this helps.
06-11-2019 10:30 PM
Just to add .. %SNMP-3-INPUT_QFULL_ERR is a well-known issue and documented under various bug ids on different IOS. You may want to check the software version and upgrade.
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