cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
434
Views
5
Helpful
1
Replies

EEM - trigger suppresion?

todd.martin
Level 1
Level 1

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 ?

problem:

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.

Question:

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 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

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.