<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI Semilight";
        panose-1:2 11 4 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Re: Adam’s advice about IOS/XR SNMP access to VRF, while this experience may be a bit dated [IOS XR 5.x], in production we have used "snmp-server community-map $x context $y".  I will say we weren't pleased, we noticed that context switches
 didn't work well.  For example if our poller tried to simultaneously poll the global community and the vrf community at the same time, the results were non deterministic.  Maybe this has been improved in later versions, or if you always have a single poller
 that will always be sequential, you may never see this.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Although more work BMP is probably the better/safer approach.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Michael<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> NANOG <nanog-bounces+michael.hare=wisc.edu@nanog.org>
<b>On Behalf Of </b>Adam Thompson<br>
<b>Sent:</b> Thursday, January 6, 2022 12:41 PM<br>
<b>To:</b> Sandoiu Mihai <Mihai.Sandoiu@wwz.ch>; nanog@nanog.org<br>
<b>Subject:</b> RE: BGP Route Monitoring<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-CA">Most monitoring products allow you to monitor custom SNMP OIDs, and your entire BGP RIB is – usually – exposed via SNMP.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Most monitoring products also treat “missing” OIDs specially, and can alert on that fact.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">At least, that’s how I would start doing it.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">We use Observium here, and it can do what you want, albeit with a little bit of futzing around in the Custom OID and Alerts sections.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Cisco does weird things with getting SNMP data from VRFs, though, so… YMMV.  I know there used to be a Cisco-proprietary way to select which VRF you were polling common OIDs from, but don’t remember the details.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">-Adam<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span lang="EN-CA" style="font-size:10.0pt;color:#44546A;background:white;mso-fareast-language:EN-CA">Adam Thompson</span></b><span lang="EN-CA" style="font-size:9.0pt;color:#44546A;background:white;mso-fareast-language:EN-CA"><br>
Consultant, Infrastructure Services<br>
</span><span lang="EN-CA" style="font-size:9.0pt;color:#44546A;background:white;mso-fareast-language:EN-CA"><img width="128" height="39" style="width:1.3333in;height:.4062in" id="_x0000_i1025" src="cid:image001.png@01D802FA.4700E470" alt="MERLIN"></span><span lang="EN-CA" style="font-size:9.0pt;color:#44546A;background:white;mso-fareast-language:EN-CA"><br>
100 - 135 Innovation Drive<br>
Winnipeg, MB, R3T 6A8<br>
(204) 977-6824 or 1-800-430-6404 (MB only)<br>
<a href="mailto:athompson@merlin.mb.ca" target="_blank"><span style="color:blue">athompson@merlin.mb.ca</span></a><br>
<a href="http://www.merlin.mb.ca/" target="_blank"><span style="color:blue">www.merlin.mb.ca</span></a></span><span lang="EN-CA" style="font-size:12.0pt;color:black;mso-fareast-language:EN-CA"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="mso-fareast-language:EN-CA">From:</span></b><span style="mso-fareast-language:EN-CA"> NANOG <<a href="mailto:nanog-bounces+athompson=merlin.mb.ca@nanog.org">nanog-bounces+athompson=merlin.mb.ca@nanog.org</a>>
<b>On Behalf Of </b>Sandoiu Mihai<br>
<b>Sent:</b> Thursday, January 6, 2022 4:35 AM<br>
<b>To:</b> <a href="mailto:nanog@nanog.org">nanog@nanog.org</a><br>
<b>Subject:</b> BGP Route Monitoring<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">I
</span><span lang="DE-CH" style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">am looking for a route monitoring product that does the following:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">-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 <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">-sends a syslog message or an alarm if the route goes missing<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">Alternative approach: a product that measures the number of bgp received prefixes from a certain peer.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">Do you know of such product that is readily available and does not require ssh sessions to the routers and parsing the outputs?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">I am trying to find a solution that does not require much scripting or customization.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">Many thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:10.0pt;font-family:"Segoe UI Semilight",sans-serif;color:black">Mihai<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>