cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2178
Views
0
Helpful
1
Replies

EEM TCL Script: how to stop execution after

parisdooz12
Beginner
Beginner

Hi,

I am developping a EEM TCL script (let's say; "INT.tcl" based on a syslog event which has to occur 3 times in less that 60 seconds to be executed

::cisco::eem::event_register_syslog tag e1 pattern "xxxxxxx" occurs 3 period 60.

The event is correlated with ::cisco::eem::event_register_none, in order to execute this script from another script (let's say: LAUNCH.tcl)

I am trying to find a solution to stop INT.tcl execution (exit 0) after 60 seconds (if I am not wrong, by default, if the event ::cisco::eem::event_register_none happens one (execution from LAUNCH.tcl), the it continues indefinitely to monitor syslogs up to have 3 events in less than 60s.

What could be the solution?

Thanks by advance

P.

1 Reply 1

Joe Clarke
Hall of Fame Cisco Employee Hall of Fame Cisco Employee
Hall of Fame Cisco Employee

I really don't have a clear picture of what you're wanting to do.  It would be helpful to see the full contents of your scripts in addition to more details.  My initial gut answer is that by default an EEM policy will terminate after 20 seconds (default maxrun).  You can extend that to 60 or any other value if you want.

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:

Recognize Your Peers