Hi Mihai,

 

Have you looked into object tracking?

This will work if the route state changes and is removed from the routing table.

So if the route is no longer present it will trigger for sure.

I admit I have not tried to see if it would trigger on a change from peer 1 to peer 2, as the route is still “up”.

 

This functionality is built into XR and can generate  syslog events directly from the router without any additional software.

 

https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k-r6-5/system-management/configuration/guide/b-system-management-cg-asr9000-65x/b-system-management-cg-asr9000-65x_chapter_0110.html

 

 

Brian

 

 

From: NANOG <nanog-bounces+b.turnbow=twt.it@nanog.org> On Behalf Of Sandoiu Mihai
Sent: Thursday, January 6, 2022 11:35 AM
To: nanog@nanog.org
Subject: BGP Route Monitoring

 

Hi

 

I am looking for a route monitoring product that does the following:

-checks if a specific bgp route from a specific neighbor is present the BGP table (in some vrf, not necessarily internet routed vrf) of an ASR9K running IOS XR

-sends a syslog message or an alarm if the route goes missing

 

The use case is the following: we are receiving same routes over 2 or more bgp peerings, due to best route we cannot really see at the moment if one of the routes ceased to be received over a certain peering.

 

Alternative approach: a product that measures the number of bgp received prefixes from a certain peer.

 

Do you know of such product that is readily available and does not require ssh sessions to the routers and parsing the outputs?

I am trying to find a solution that does not require much scripting or customization.

 

Many thanks.

 

Regards

Mihai