10-16-2010 04:58 AM - edited 03-04-2019 10:08 AM
folks
i have a router which peers with two ISP BGP routers, one on my primary link and the other on my backup link
the isp advertises a default route to my routers
i noticed that i have failed over to my backup link due to an md5 authentication issue on the primary site
i have a bgp log-neighbor-changes command in my config and i can see the following in my logs
Oct 14 16:13:25.747: %BGP-3-NOTIFICATION: sent to neighbor *.*.*.*/0 (hold time expired) 0 bytes
is there any way to have the router notify via snmp or syslog of a change when a link fails over or when a bgp neighbour becomes unavailable?
thanks to anyone taking the time to read this or to reply
Solved! Go to Solution.
10-16-2010 11:55 AM
Hi,
If you want SNMP traps for BGP state changes, you can configure:
snmp-server enable traps bgp state-changes all
or if you want limited transitions to be send, you can configure it with limited knob as below:
T-1(config)#snmp-server enable traps bgp state-changes ?
all CISCO specific trap for all fsm state changes
backward-trans CISCO specific trap for backward transition
limited Trap for standard backward transition and established
HTH
Reza
10-16-2010 11:56 AM
Yes - you need to send the logs to a syslog server (the easiest way) with the command:-
logging x.x.x.x
This will send the BGP log message to the server. Then run either KiwiSyslog (Windows) or SyslogNG (Linux) to send an email when the specific text string is recevied. I personally use:-
"%BGP-3-NOTIFICATION"
that way I see everything!
10-16-2010 11:55 AM
Hi,
If you want SNMP traps for BGP state changes, you can configure:
snmp-server enable traps bgp state-changes all
or if you want limited transitions to be send, you can configure it with limited knob as below:
T-1(config)#snmp-server enable traps bgp state-changes ?
all CISCO specific trap for all fsm state changes
backward-trans CISCO specific trap for backward transition
limited Trap for standard backward transition and established
HTH
Reza
10-16-2010 11:56 AM
Yes - you need to send the logs to a syslog server (the easiest way) with the command:-
logging x.x.x.x
This will send the BGP log message to the server. Then run either KiwiSyslog (Windows) or SyslogNG (Linux) to send an email when the specific text string is recevied. I personally use:-
"%BGP-3-NOTIFICATION"
that way I see everything!
10-17-2010 02:31 AM
andrew/reza
many thanks for your responses
either option suits me so i'll try both
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