cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1322
Views
5
Helpful
1
Replies
pahuja
Beginner

Run only one instance of a specific EEM applet of a at one time.

I've setup IP SLA to generate a syslog message for an event. I then have an EEM applet watching for that syslog message. The EEM applet run time is set to be very long (upto several hours), only to end when the network becomes stable.


Given the right conditions, IP SLA will generate multiple syslog messages that could trigger multiple EEM applet instances. I wish to prevent that so only one instance of this EEM applet is running at one point of time.

How can I achieve this?

Thanks,

Pankaj

1 REPLY 1
Joe Clarke
Hall of Fame Cisco Employee

Honestly, this sounds like a bad design.  Long-running EEM policies are discouraged, and it sounds like you could accomplish what you want by using multiple, short-lived policies.  You might want to have a look at https://supportforums.cisco.com/document/12723951/how-introduce-large-delays-eem-policies for what will likely be a better solution.

That said, if you wanted to prevent multiple applets from running at the same time, you can drop the applet thread count to 1 using the command "event manager scheduler applet thread class default number 1"