cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1193
Views
0
Helpful
2
Replies

EEM-tcl trigger using customized syslog not working.

soachar
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

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".

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

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".

Thanks for info Joseph. 

 

Regards,

Soumya. 

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: