BGP Peer Status via SNMP

Has anyone figured out a way to monitor BGP Peer status via SNMP?

I want to program our monitoring system (IPSwitch Whats Up Gold) to watch the Peer status, not just ping the other side of the connection, to make sure the session is active.

Bueller…
.
.
.
.
.
Bueller…
.
.
.
.
.
Bueller…
.
.
.
.
anyone?

I dont think there is any peer status, in fact there isnt at all. However, if you receive a specific route that you know should always be there, ie your peers route, etc; then you can use snmp to poll to see if it exists:

.iso.org.dod.internet.mgmt.mib-2.ip.ipRouteTable.ipRouteEntry.ipRouteProto = bgp, etc.

Sam

Interresting idea, hadn’t thought of that before…

After some testing, it works in theory, but not in practice… I’ve got full tables on all of my BGP routers, and some have more then one upstream provider tied to them, which means ~260,000 to ~520,000 routes… doing some testing on one of my standby routers with full tables, it took 10+ seconds to get a response, and pegged the CPU for those 10 seconds while reading the SNMP value

When trying to input the OID into my monitoring system, it pegged the CPU @ 100% for 10 minutes, until I finally had to disable SNMP on the router to terminate the query…

ouch : ) Yes, anything to do with a full routing table is a pain in the a**.

Next best would be to use ssh from a remote box to run that query. I posted a wiki entry about how to use ssh and certificates to pull data, can you do something like that with whatsup ?

no SSH support in Whats Up… it supports anything via SNMP and if it can be scripted in VBS or WMI it can easily be added, but nothing like what you’re talking about via SSH… I can do a simple TCP connect then challenge / response probe as well, but I don’t see any way to use that.