04-07-2014 01:14 AM
I had a query with respect to eem tcl scripts.
I have to invoke a script when a customized syslog is generated, which is not working
Test1.tcl
::cisco::eem::event_register_none maxrun 100
namespace import ::cisco::eem::*
namespace import ::cisco::lib::*
action_syslog msg "Invoke call manager"
Test2.tcl
::cisco::eem::event_register_syslog pattern "\%HA_EM-6-LOG: test1.tcl: Invoke call manager"
namespace import ::cisco::eem:*
namespace import ::cisco::lib:*
action_syslog msg "Entered test2.tcl"
Debugs:
Apr 7 07:43:55.544: %HA_EM-6-LOG: test1.tcl: Invoke call manger
Apr 7 07:43:55.784: %HA_EM-6-LOG: test1.tcl: Invoke call manger
Though I am seeing the message in the log, 2nd script, test2.tcl is not getting triggered. Can anyone help me understand why this is happening?
Thanks,
Soumya
Solved! Go to Solution.
04-08-2014 10:14 PM
EEM cannot generate syslog messages that EEM can intercept. This is to avoid possible infinite loops. If you want one script to invoke another, look at using "action_policy".
04-08-2014 10:14 PM
EEM cannot generate syslog messages that EEM can intercept. This is to avoid possible infinite loops. If you want one script to invoke another, look at using "action_policy".
04-23-2014 09:34 AM
Thanks for info Joseph.
Regards,
Soumya.
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: