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

Event Manager applet question

tedauction
Level 1
Level 1

Hello, I have created this script to reboot a cellular modem inside a 1900 series router when the BGP learned default route is lost.

This script worked fine on my lab setup, however on site, the script kept on continously rebooting the cellular modem.

I double checked and confirmed that the BGP learned 0.0.0.0 route was definitely not in the routing table. Does anyone know why this might have caused the cellular modem to continuosly reboot ?

Thank you kindly.

event manager applet ResetMPIP authorization bypass
event routing network 0.0.0.0/0 type remove protocol BGP
action 100 syslog msg "***** Cellular modem has been power-cycled ******"
action 200 cli command "enable"
action 210 cli command "configure terminal"
action 220 cli command "service internal"
action 230 cli command "exit"
action 300 cli command "test cellular 0/0/0 modem-power-cycle"

Here are the logs showing how the cellular modem was continously rebooting. It seems like the script (EEM:ResetMPIP) kept firing but from different vty sources ? What would cause that ?

Oct 17 18:06:53: %SYS-5-CONFIG_I: Configured from console by on vty9 (EEM:ResetMPIP)
Oct 17 18:06:53: %SYS-5-CONFIG_I: Configured from console by on vty10 (EEM:ResetMPIP )
Oct 17 18:06:53: %SYS-5-CONFIG_I: Configured from console by on vty8 (EEM:ResetMPIP)
Oct 17 18:06:53: %SYS-5-CONFIG_I: Configured from console by on vty7 (EEM:ResetMPIP)
Oct 17 18:06:53: %SYS-5-CONFIG_I: Configured from console by on vty6 (EEM:ResetMPIP)
Oct 17 18:07:13.084 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:13.088 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:13.112 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:13: %SYS-5-CONFIG_I: Configured from console by on vty2 (EEM:ResetMPIP)
Oct 17 18:07:13: %SYS-5-CONFIG_I: Configured from console by on vty0/0/0 (EEM:ResetM PIP)
Oct 17 18:07:13.200 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:13.204 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:13: %SYS-5-CONFIG_I: Configured from console by on vty1 (EEM:ResetMPIP)
Oct 17 18:07:13: %CELLWAN-2-MODEM_UP: Modem in HWIC slot 0/0 is now UP
Oct 17 18:07:13: %SYS-5-CONFIG_I: Configured from console by on vty4 (EEM:ResetMPIP)
Oct 17 18:07:13: %SYS-5-CONFIG_I: Configured from console by on vty5 (EEM:ResetMPIP)
Oct 17 18:07:33.119 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:33.123 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:33.183 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:33: %SYS-5-CONFIG_I: Configured from console by on vty7 (EEM:ResetMPIP)
Oct 17 18:07:33.239 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:33.247 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:33: %SYS-5-CONFIG_I: Configured from console by on vty8 (EEM:ResetMPIP)
Oct 17 18:07:33: %SYS-5-CONFIG_I: Configured from console by on vty6 (EEM:ResetMPIP)
Oct 17 18:07:33: %SYS-5-CONFIG_I: Configured from console by on vty10 (EEM:ResetMPIP )
Oct 17 18:07:33: %SYS-5-CONFIG_I: Configured from console by on vty9 (EEM:ResetMPIP)
Oct 17 18:07:53.203 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:53.207 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:53.267 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been powe r-cycled ******
Oct 17 18:07:53: %SYS-5-CONFIG_I: Configured from console by on vty2 (EEM:ResetMPIP)
Oct 17 18:07:53.323 NZDT: %HA_EM-6-LOG: ResetMPIP: ***** Cellular modem has been pow

1 Accepted Solution

Accepted Solutions

thiland
Level 3
Level 3

I would try a couple of things:

1.  Run a debug to see why the applet is being triggered

debug event manager detector routing

2.  Apply a rate limiter to the event detector

event detector routing network 0.0.0.0/0 type remove protocol bgp ratelimit 10000

View solution in original post

2 Replies 2

thiland
Level 3
Level 3

I would try a couple of things:

1.  Run a debug to see why the applet is being triggered

debug event manager detector routing

2.  Apply a rate limiter to the event detector

event detector routing network 0.0.0.0/0 type remove protocol bgp ratelimit 10000

Joe Clarke
Cisco Employee
Cisco Employee

Given the way the event fires, it would seem that the default route is quickly bouncing in and out of the routing table.

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco