[nsp] cisco bgp peer OID

Elliott, Andrew AElliott@xo.com
Mon, 14 Oct 2002 15:53:07 -0500


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/