cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1019
Views
0
Helpful
1
Replies

_syslog_msg in tcl policy

ruslangh23
Level 1
Level 1

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.


1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

You need to call event_reqinfo to get the event details:

array set arr_einfo [event_reqinfo]

puts "Syslog message is $arr_einfo(msg)"

View solution in original post

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

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: