Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP Log route updates

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

2 REPLIES
Cisco Employee

Re: BGP Log route updates

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.

New Member

Re: BGP Log route updates

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

1136
Views
0
Helpful
2
Replies