Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

_syslog_msg in tcl policy

Hello,

I am  new to eem and tcl and trying to learn.I am using tcl policy with ::cisco::eem::event_register_syslog with my pattern. In the script i want to be able to access the message that triggeredthe script but when I use $_syslog_msg there is  error for undefined variable.

How can I be able to access the syslog  message itself in the policy.

Thanks.


  • Network Management
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

_syslog_msg in tcl policy

You need to call event_reqinfo to get the event details:

array set arr_einfo [event_reqinfo]

puts "Syslog message is $arr_einfo(msg)"

1 REPLY
Cisco Employee

_syslog_msg in tcl policy

You need to call event_reqinfo to get the event details:

array set arr_einfo [event_reqinfo]

puts "Syslog message is $arr_einfo(msg)"

707
Views
0
Helpful
1
Replies
This widget could not be displayed.