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.
You need to call event_reqinfo to get the event details:
array set arr_einfo [event_reqinfo]
puts "Syslog message is $arr_einfo(msg)"
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: