EEM - trigger suppresion?

Unanswered Question

I have an EEM script that moves WCCP service from the WAN interface to the LAN when the BGP ADGCHANGE syslog is generated.

attached is the EEM script that is missing the suppression function.

Joe Clarke --- can you Help ?


when a circut is flapping, there are lots of BGP-ADGCHANGE messages as a result. this causes EEM to reconfigure the router over and over and over.


Is there a way for EEM to trigger 1 time when any number of BGP-ADGCHANGE messages are generated over say a 10 minute period?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Joe Clarke Tue, 12/30/2008 - 09:13
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You have a few choices. One is to have your applet configure another countdown applet every time it runs. The countdown timer will be for 10 minutes, and it will run all of the commands you want to be held down. If this countdown applet is configured every time the event occurs, the commands will only run 10 minutes after the final syslog message is seen.

Of course, that approach will potentially generate a lot of configuration churn. If you're running 12.4(22)T, you can use EEM 3.0, and write a programmatic applet to save and retrieve context data. By doing this, you can track when the first syslog message was received, and trigger the commands 10 minutes after that.

Finally, if your running IOS less than 12.4(22)T, you can convert these applets to Tcl policies, and use the same context approach as above.


This Discussion