cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3380
Views
6
Helpful
3
Replies

BGP Log route updates

sadcock123
Level 1
Level 1

Hello,

Does anyone know if there is a way to log bgp routes updates? Obviously there is a way to see adjacencies changes, but I am needing to see route updates by logging so I can send the output to a Syslog server?

Cheers

Steven

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

Assuming your router is running 12.3(14)T or higher, you could use the Embedded Event Manager to accomplish this. Using EEM, you could run the show ip route bgp command, store the results, then periodically recheck the table, and notify via syslog when there is a change. This would require an EEM Tcl policy. More on writing EEM policies in Tcl can be found at http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_eem_policy_tcl.html , and a sample policy of mine which does something similar for DCHP leases can be found at http://forums.cisco.com/eforum/servlet/EEM?page=eem&fn=script&scriptId=1212 .

Admittedly, with a large table, this may not be doable with EEM right now. We are looking at introducing a new Route Event Detector in an upcoming EEM release that will make this a lot easier.

If you want to pursue the EEM route, and have questions, feel free to ask.

Hello,

I have just done the following command on my router:-

debug bgp ipv4 unicast updates in

Then picked up the info from syslog and mailed out to myself which informs me of a route change.

Cheers

Steven

Thank you so much!