[c-nsp] bgp oids ?

Ed Ravin eravin at panix.com
Mon Oct 9 16:54:15 EDT 2006


On Mon, Oct 09, 2006 at 01:33:36PM -0700, matthew zeier wrote:
> 
> 
> matthew zeier wrote:
> > I'm probably just being a spaz today but I'm having a real hard time 
> > finding the OIDs to pull for neighbors and neighbor states.  Can anyone 
> > point me in the right direction?
> 
> Found it but I was really looking at something to show me how long a 
> session's been online - that I can't find.

It's this one:

        "bgpPeerFsmEstablishedTime"     =>      "1.3.6.1.2.1.15.3.1.16",

Here's an excerpt from the BGP monitoring script I use - it's part of the
Mon package - available at http://kernel.org/software/mon/ (under
"contrib" and then "bgp.monitor").  If you have a Perl environment
with SNMP.pm and SNMP::Session, you'll be able to use it standalone
to get status of your BGP sessions.

----------------------
# OID's to the SNMP elements that I want to show...
# From Cisco's MIB and RFC's
# http://sunsite.cnlab-switch.ch/ftp/doc/standard/rfc/16xx/1657
# http://www.telecomm.uh.edu/stats/rfc/BGP4-MIB.html

my %oids = (
        "SysUptime"                     =>      "1.3.6.1.2.1.1.3.0",
        "bgpVersion"                    =>      "1.3.6.1.2.1.15.1.0",
        "bgpLocalAs"                    =>      "1.3.6.1.2.1.15.2.0",
#       "bgpPeerTable"                  =>      "1.3.6.1.2.1.15.3",
        "bgpPeerEntry"                  =>      "1.3.6.1.2.1.15.3.1",
        "bgpPeerIdentifier"             =>      "1.3.6.1.2.1.15.3.1.1",
        "bgpPeerState"                  =>      "1.3.6.1.2.1.15.3.1.2",
        "bgpPeerAdminStatus"            =>      "1.3.6.1.2.1.15.3.1.3",
        "bgpPeerNegotiatedVersion"      =>      "1.3.6.1.2.1.15.3.1.4",
        "bgpPeerLocalAddr"              =>      "1.3.6.1.2.1.15.3.1.5",
        "bgpPeerLocalPort"              =>      "1.3.6.1.2.1.15.3.1.6",
        "bgpPeerRemoteAddr"             =>      "1.3.6.1.2.1.15.3.1.7",
        "bgpPeerRemotePort"             =>      "1.3.6.1.2.1.15.3.1.8",
        "bgpPeerRemoteAs"               =>      "1.3.6.1.2.1.15.3.1.9",
        "bgpPeerInUpdates"              =>      "1.3.6.1.2.1.15.3.1.10",
        "bgpPeerOutUpdates"             =>      "1.3.6.1.2.1.15.3.1.11",
        "bgpPeerInTotalMessages"        =>      "1.3.6.1.2.1.15.3.1.12",
        "bgpPeerOutTotalMessages"       =>      "1.3.6.1.2.1.15.3.1.13",
        "bgpPeerLastError"              =>      "1.3.6.1.2.1.15.3.1.14",
        "bgpPeerFsmEstablishedTransitions" =>   "1.3.6.1.2.1.15.3.1.15",
        "bgpPeerFsmEstablishedTime"     =>      "1.3.6.1.2.1.15.3.1.16",
        "bgpPeerConnectRetryInterval"   =>      "1.3.6.1.2.1.15.3.1.17",
        "bgpPeerHoldTime"               =>      "1.3.6.1.2.1.15.3.1.18",
        "bgpPeerKeepAlive"              =>      "1.3.6.1.2.1.15.3.1.19",
        "bgpPeerHoldTimeConfigured"     =>      "1.3.6.1.2.1.15.3.1.20",
        "bgpPeerKeepAliveConfigured"    =>      "1.3.6.1.2.1.15.3.1.21",
        "bgpPeerMinASOriginationInterval" =>    "1.3.6.1.2.1.15.3.1.22",
        "bgpPeerMinRouteAdvertisementInterval" => "1.3.6.1.2.1.15.3.1.23",
        "bgpPeerInUpdateElapsedTime"    =>      "1.3.6.1.2.1.15.3.1.24",
        "bgpIdentifier"                 =>      "1.3.6.1.2.1.15.4",
        "bgpRcvdPathAttrTable"          =>      "1.3.6.1.2.1.15.5",
        "bgp4PathAttrTable"             =>      "1.3.6.1.2.1.15.6",
        "bgpPathAttrEntry"              =>      "1.3.6.1.2.1.15.5.1",
        "bgpPathAttrPeer"               =>      "1.3.6.1.2.1.15.5.1.1",
        "bgpPathAttrDestNetwork"        =>      "1.3.6.1.2.1.15.5.1.2",
        "bgpPathAttrOrigin"             =>      "1.3.6.1.2.1.15.5.1.3",
        "bgpPathAttrASPath"             =>      "1.3.6.1.2.1.15.5.1.4",
        "bgpPathAttrNextHop"            =>      "1.3.6.1.2.1.15.5.1.5",
        "bgpPathAttrInterASMetric"      =>      "1.3.6.1.2.1.15.5.1.6",
        "bgp4PathAttrEntry"             =>      "1.3.6.1.2.1.15.6.1",
        "bgp4PathAttrPeer"              =>      "1.3.6.1.2.1.15.6.1.1",
        "bgp4PathAttrIpAddrPrefixLen"   =>      "1.3.6.1.2.1.15.6.1.2",
        "bgp4PathAttrIpAddrPrefix"      =>      "1.3.6.1.2.1.15.6.1.3",
        "bgp4PathAttrOrigin"            =>      "1.3.6.1.2.1.15.6.1.4",
        "bgp4PathAttrASPathSegment"     =>      "1.3.6.1.2.1.15.6.1.5",
        "bgp4PathAttrNextHop"           =>      "1.3.6.1.2.1.15.6.1.6",
        "bgp4PathAttrMultiExitDisc"     =>      "1.3.6.1.2.1.15.6.1.7",
        "bgp4PathAttrLocalPref"         =>      "1.3.6.1.2.1.15.6.1.8",
        "bgp4PathAttrAtomicAggregate"   =>      "1.3.6.1.2.1.15.6.1.9",
        "bgp4PathAttrAggregatorAS"      =>      "1.3.6.1.2.1.15.6.1.10",
        "bgp4PathAttrAggregatorAddr"    =>      "1.3.6.1.2.1.15.6.1.11",
        "bgp4PathAttrCalcLocalPref"     =>      "1.3.6.1.2.1.15.6.1.12",
        "bgp4PathAttrBest"              =>      "1.3.6.1.2.1.15.6.1.13",
        "bgp4PathAttrUnknown"           =>      "1.3.6.1.2.1.15.6.1.14",
        );



More information about the cisco-nsp mailing list