BGP Log route updates

Unanswered Question
Sep 17th, 2008

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Wed, 09/17/2008 - 08:27

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.

sadcock123 Wed, 09/17/2008 - 08:38

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

Actions

This Discussion