cpatte7372
asked on
EEM (Tcl) Script for an Event Help
Hello Community,
Can someone please show me how to compile a EEM (Tcl) script that will be activated when a syslog event occurs. For example, I would like the script to be activated when the following syslog event occurs:
%OSPF-5-ADJCHG:
Also I would like a similar script to be activated when the following syslog event occurs:
VDC_MGR-2-VDC_BAD: vdc_mgr
VDC_MGR-2-VDC_UNGRACEFUL: vdc_mgr:
Cheers
Can someone please show me how to compile a EEM (Tcl) script that will be activated when a syslog event occurs. For example, I would like the script to be activated when the following syslog event occurs:
%OSPF-5-ADJCHG:
Also I would like a similar script to be activated when the following syslog event occurs:
VDC_MGR-2-VDC_BAD: vdc_mgr
VDC_MGR-2-VDC_UNGRACEFUL: vdc_mgr:
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Cheers
ASKER
::cisco::eem::event_regist
::cisco::eem::event_regist
namespace import ::cisco::eem::*
namespace import ::cisco::lib::*
array set arr_einfo [event_reqinfo]
action_syslog msg "testlog_osfp"
Any help?
Cheers