<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
i'm wondering if is there any way to get the number of received
& active prefixes for each neighbor by SNMP ? Can't find it
anywhere.<br>
<br>
I'm asking about those two number (marked red & bold):<br>
<br>
<tt>#show bgp neighbor xx.xx.xx.xx</tt><tt><br>
</tt><tt>BGP neighbor: xx.xx.xx.xx, remote AS: xx, external link</tt><tt><br>
</tt><tt> Version: 4, router identifier: yy.yy.yy.yy</tt><tt><br>
</tt><tt> State: Established for 00:27:08</tt><tt><br>
</tt><tt> Description: xxxxxxxxxxxxxxx</tt><tt><br>
</tt><tt> Last read 00:00:00, last send 00:00:22</tt><tt><br>
</tt><tt> Hold time: configured 180, negotiated 90</tt><tt><br>
</tt><tt> Keepalive time: configured 60, negotiated 30</tt><tt><br>
</tt><tt> Local restart timer 120 sec, stale route retain timer 180
sec</tt><tt><br>
</tt><tt> Received restart timer 120 sec, flag 0x8000</tt><tt><br>
</tt><tt> Number of hops external BGP neighbor may be away: 1</tt><tt><br>
</tt><tt> Minimum time between advertisement runs: 30 secs</tt><tt><br>
</tt><tt> Source (local) IP address: xx.xx.xx.xx</tt><tt><br>
</tt><tt> Next hop set to self (next-hop-self)</tt><tt><br>
</tt><tt> Received messages: 179933 (16217728 bytes),
notifications: 0, in queue: 0</tt><tt><br>
</tt><tt> Sent messages: 68 (1855 bytes), notifications: 3, out
queue: 0</tt><tt><br>
</tt><tt> Reset count: 6, last reset time: 00:30:04, reset reason:
Remote/TCP close</tt><tt><br>
</tt><tt><br>
</tt><tt> CapSent: refresh, 4byteAS, unicast, restart</tt><tt><br>
</tt><tt> CapRcvd: refresh, 4byteAS, unicast</tt><tt><br>
</tt><tt> restart (time 120, flags 0x8000, empty)</tt><tt><br>
</tt><tt><br>
</tt><tt> Address family: ipv4 unicast</tt><tt><br>
</tt><tt> BGP table version: yyyy, neighbor version: yyyy</tt><tt><br>
</tt><tt> Route map in : upstreams_accepted</tt><tt><br>
</tt><tt> Route map out : peerings_advertised</tt><tt><br>
</tt><tt> Routes:</tt><tt><b> <font color="#ff0000">rcvd 761820</font></b></tt><tt>,
imported 0, </tt><tt><font color="#ff0000"><b>active 353593</b></font></tt><tt>,
history 0, dampend 0, sent 15</tt><tt><br>
</tt><tt> End-of-RIB marker rcvd</tt><br>
<br>
Thanks in advance,<br>
Best regards,<br>
<pre class="moz-signature" cols="72">--
Wojciech Wrona</pre>
</body>
</html>