On 1/9/07, Marcin Zabłocki <[EMAIL PROTECTED]> wrote:
I have a small problem with snmp traps from cisco GSR router.
I would like to recieve traps about BGP neighbour state changes.
I have loaded snmp BGP4-MIB and draft of BGP4v2-MIB as the
CISCO-BGP4-MIB shows no oids after loading to zenoss.
I see event snmp trap bgpBackwardTransNotification from router.
And
snmp trap 1.3.6.1.4.1.9.9.187.0.1 from router
snmp trap 1.3.6.1.4.1.9.9.187.0.2 from router
Details shows:
1.3.6.1.2.1.15.3.1.14.192.168.0.1
1.3.6.1.2.1.15.3.1.2.192.168.0.1 1
1.3.6.1.4.1.9.9.187.1.2.1.1.7.192.168.0.1 cease
1.3.6.1.4.1.9.9.187.1.2.1.1.8.192.168.0.1 6
where the last part of oid is neighbour ip address.
How can I access this value in transform to know for which peer
notification is.
This is probably not the best way to do it, but if you don't get a
better response it can be done like this:
for attr in dir(evt):
if attr.startswith('1.3.6.1.2.1.15.3.1.14.'):
evt.bgpPeerIp = getattr(evt, attr).replace('1.3.6.1.2.1.15.3.1.14.', '')
evt.summary = "bgpBackwardTransNotification from " + evt.bgpPeerIp
--
Chet Luther
[EMAIL PROTECTED]
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users