01-16-2017 01:05 AM
Hi,
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
Thanks in advance
01-17-2017 02:10 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide
Log in to Community