Hello i have some test tcl script for cisco router:
# script.tcl test
::cisco::eem::event_register_syslog tag 1 pattern ".*SYS-5-CONFIG_I: Configured from console.*" occurs 1
::cisco::eem::trigger {
::cisco::eem::correlate event 1
::cisco::eem::attribute tag 1 occurs 1
}
namespace import ::cisco::eem::*
namespace import ::cisco::lib::*
set hostname [info hostname]
array set arr_einfo [event_reqinfo]
puts "Syslog message is $arr_einfo(msg)"
i call tcl script: event manager policy script.tcl
event manager directory user policy "flash:/"
in this case I have all time blank cli message: Syslog message is (without arr_einfo(msg))
Can someone help please? Thank you.