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

How to create TCL to send syslog to SNMP Traps (XR 4.3.2)

Rojer-bkk
Level 1
Level 1

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

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

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: