[j-nsp] BGP Peer Route Table Size OID
Scott Weeks
surfer at mauigateway.com
Mon Mar 12 17:32:09 EST 2007
: web and can't find it. What SNMP OID do you guys
: use for the number of routes an external BGP peer
: is sending you?
------ eric at atlantech.net wrote:-------------------
.1.3.6.1.4.1.2636.5.1.1.2.6.2.1.8.X.1.1
and
.1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7.X.1.1
These are BGP peer prefixes in/used (can't remember which is which),
where X is the peer index number. Unfortunately, at least with older
-----------------------------------------------------
Ahhh... Now I see where I was conphused. First find the peer index number:
snmpwalk -Os -c passwd -v 1 ipaddress 1.3.6.1.4.1.2636.5.1.1.2.1.1.1.14
jnxExperiment.1.1.2.1.1.1.14.0.1.NNN.NNN.NNN.NNN.1.nnn.nnn.nnn.nnn = Gauge32: 5
jnxExperiment.1.1.2.1.1.1.14.0.1.NNN.NNN.NNN.NNN.1.nnn.nnn.nnn.nnn = Gauge32: 6
jnxExperiment.1.1.2.1.1.1.14.0.1.NNN.NNN.NNN.NNN.1.nnn.nnn.nnn.nnn = Gauge32: 7
jnxExperiment.1.1.2.1.1.1.14.0.1.NNN.NNN.NNN.NNN.1.nnn.nnn.nnn.nnn = Gauge32: 2
jnxExperiment.1.1.2.1.1.1.14.0.1.NNN.NNN.NNN.NNN.1.nnn.nnn.nnn.nnn = Gauge32: 4
jnxExperiment.1.1.2.1.1.1.14.0.1.NNN.NNN.NNN.NNN.1.nnn.nnn.nnn.nnn = Gauge32: 0
jnxExperiment.1.1.2.1.1.1.14.0.1.NNN.NNN.NNN.NNN.1.nnn.nnn.nnn.nnn = Gauge32: 3
Where N and n are the IP addresses on each side of the BGP session...
Then find the number of routes:
snmpwalk -Os -c passwd -v 1 ipaddress 1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7
jnxExperiment.1.1.2.6.2.1.7.0.1.1 = Gauge32: 210210
jnxExperiment.1.1.2.6.2.1.7.2.1.1 = Gauge32: 1
jnxExperiment.1.1.2.6.2.1.7.3.1.1 = Gauge32: 1012
jnxExperiment.1.1.2.6.2.1.7.4.1.1 = Gauge32: 209974
jnxExperiment.1.1.2.6.2.1.7.5.1.1 = Gauge32: 11
jnxExperiment.1.1.2.6.2.1.7.6.1.1 = Gauge32: 2
jnxExperiment.1.1.2.6.2.1.7.7.1.1 = Gauge32: 0
Thanks! You saved me a lot of time... :-)
scott
More information about the juniper-nsp
mailing list