[nsp] cisco bgp peer OID

James Cornman james@nac.net
Mon, 14 Oct 2002 17:30:30 -0400 (EDT)


>From a box with the MIBs working correctly, you'll see that nothing here
is listed about the number of prefixes. Jared is correct.

helium:~$ snmpwalk cust3.oct xxxxxx .1.3.6.1.2.1.15.3.1
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerIdentifier.209.123.11.85 = IpAddress: 209.123.12.50
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerState.209.123.11.85 = established(6)
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerAdminStatus.209.123.11.85 = start(2)
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerNegotiatedVersion.209.123.11.85 = 4
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerLocalAddr.209.123.11.85 = IpAddress: 209.123.11.86
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerLocalPort.209.123.11.85 = 179
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerRemoteAddr.209.123.11.85 = IpAddress: 209.123.11.85
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerRemotePort.209.123.11.85 = 4245
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerRemoteAs.209.123.11.85 = 8001
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerInUpdates.209.123.11.85 = Counter32: 320625
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerOutUpdates.209.123.11.85 = Counter32: 2014
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerInTotalMessages.209.123.11.85 = Counter32: 320631
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerOutTotalMessages.209.123.11.85 = Counter32: 10546
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerLastError.209.123.11.85 =  Hex: 00 00
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerFsmEstablishedTransitions.209.123.11.85 = Counter32: 1
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerFsmEstablishedTime.209.123.11.85 = Gauge32: 255533
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerConnectRetryInterval.209.123.11.85 = 60
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerHoldTime.209.123.11.85 = 90
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerKeepAlive.209.123.11.85 = 30
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerHoldTimeConfigured.209.123.11.85 = 180
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerKeepAliveConfigured.209.123.11.85 = 60
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerMinASOriginationInterval.209.123.11.85 = 5
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerMinRouteAdvertisementInterval.209.123.11.85 = 5
bgp.bgpPeerTable.bgpPeerEntry.bgpPeerInUpdateElapsedTime.209.123.11.85 = Gauge32: 0


Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
209.123.11.85   4  8001  320677   10549  1446302    0    0 2d23h      114669



On Mon, 14 Oct 2002, Jared Mauch wrote:

| 	Andrew,
|
| 	Actually, it doesn't.
|
| 	Not sure which number you are purporting as the relevant info
| but it's not there.
|
| 	- Jared
|
| On Mon, Oct 14, 2002 at 03:53:07PM -0500, Elliott, Andrew wrote:
| > Michael,
| >
| > This is from a perl script that I use to get the info that I need and
| > display it on a webpage:
| >
| >         system("/usr/local/bin/snmpwalk $router $roCisco
| > .1.3.6.1.2.1.15.3.1.2 > $status &");
| >         system("/usr/local/bin/snmpwalk $router $roCisco
| > .1.3.6.1.2.1.15.3.1.14 > $last &");
| >         system("/usr/local/bin/snmpwalk $router $roCisco
| > .1.3.6.1.2.1.15.3.1.9 > $as &");
| >         system("/usr/local/bin/snmpwalk $router $roCisco
| > .1.3.6.1.2.1.15.3.1.16 > $chgtime &");
| >
| > If you just walk the .1.3.6.1.2.1.15.3.1 you will get all the info you are
| > looking for:
| >
| > 15.3.1.1.66.238.144.229 = IpAddress: 65.106.7.124
| > 15.3.1.2.66.238.144.229 = 6
| > 15.3.1.3.66.238.144.229 = 2
| > 15.3.1.4.66.238.144.229 = 4
| > 15.3.1.5.66.238.144.229 = IpAddress: 66.238.144.230
| > 15.3.1.6.66.238.144.229 = 12001
| > 15.3.1.7.66.238.144.229 = IpAddress: 66.238.144.229
| > 15.3.1.8.66.238.144.229 = 179
| > 15.3.1.9.66.238.144.229 = 65500
| > 15.3.1.10.66.238.144.229 = Counter32: 1130453
| > 15.3.1.11.66.238.144.229 = Counter32: 106321
| > 15.3.1.12.66.238.144.229 = Counter32: 1130456
| > 15.3.1.13.66.238.144.229 = Counter32: 117577
| > 15.3.1.14.66.238.144.229 =  Hex: 00 00
| > 15.3.1.15.66.238.144.229 = Counter32: 1
| > 15.3.1.16.66.238.144.229 = Gauge32: 1103677
| > 15.3.1.17.66.238.144.229 = 60
| > 15.3.1.18.66.238.144.229 = 180
| > 15.3.1.19.66.238.144.229 = 60
| > 15.3.1.20.66.238.144.229 = 180
| > 15.3.1.21.66.238.144.229 = 60
| > 15.3.1.22.66.238.144.229 = 30
| > 15.3.1.23.66.238.144.229 = 30
| > 15.3.1.24.66.238.144.229 = Gauge32: 20
| >
| >
| > (o<   Andrew Elliott       ph. 989.758.6963
| > //\   Router/Switch Group  pg. 888.221.4152
| > V_/_  XO Communications    aelliott@xo.com
| > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| > "i was gonna call 911...but i was downloading a file"
| >
| > -----Original Message-----
| > From: Mikael Abrahamsson [mailto:swmike@swm.pp.se]
| > Sent: Monday, October 14, 2002 1:20 PM
| > To: cisco-nsp@puck.nether.net
| > Subject: [nsp] cisco bgp peer OID
| >
| >
| >
| > I am trying to locate an snmp OID that'll show me the amount of prefixes
| > received on a bgp session but I have not been able to locate it. Basically
| > I want the same info as I can get from "show ip bgp summ | inc <peer ip>".
| >
| > Anyone have an idea? I have been googling and grepping in a 250 meg
| > snmpwalk output without avail :/
| >
| > --
| > Mikael Abrahamsson    email: swmike@swm.pp.se
| >
| > _______________________________________________
| > cisco-nsp mailing list  real_name)s@puck.nether.net
| > http://puck.nether.net/mailman/listinfo/cisco-nsp
| > archive at http://puck.nether.net/pipermail/cisco-nsp/
| > _______________________________________________
| > cisco-nsp mailing list  real_name)s@puck.nether.net
| > http://puck.nether.net/mailman/listinfo/cisco-nsp
| > archive at http://puck.nether.net/pipermail/cisco-nsp/
|
| --
| Jared Mauch  | pgp key available via finger from jared@puck.nether.net
| clue++;      | http://puck.nether.net/~jared/  My statements are only mine.
| _______________________________________________
| cisco-nsp mailing list  real_name)s@puck.nether.net
| http://puck.nether.net/mailman/listinfo/cisco-nsp
| archive at http://puck.nether.net/pipermail/cisco-nsp/
|

-- 
James Cornman <james@nac.net>
Net Access Corporation - http://www.nac.net/
(v) 973-590-5112
(f) 973-590-5080