How to create TCL to convert syslog send as SNMP Traps (platform XR 4.3.2), for example
bgp[1049]: %ROUTING-BGP-3-QAD_TIMEOUT : QAD timeout - BGP will reinitialize NSR bgp[1049]: %ROUTING-BGP-3-QAD_TIMEOUT : QAD timeout - BGP will reinitialize NSR
Within your EEM Tcl policy, you'll have code similar to the following:
array set arr_einfo [event_reqinfo]
action_snmp_trap strdata $arr_einfo(msg)
That will send the syslog message text as a string varbind within an SNMP trap.
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: