EEM TCL Script: how to stop execution after
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2013 02:55 AM
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.
- Labels:
-
EEM Scripting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2013 01:16 PM
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.
