My service provider says their network mgmt platform will monitor this MIB for OSPF trap.
I looked it and saw this is CISCO-OSPF-TRAP-MIB. My router 2811 runs OSPF on LAN side and run BGP on WAN side facing Service provider. My goal is to send trap to the Service provider to auto-generate an alarm if I have OSPF neighbor down on the LAN. I mean my LAN interface can still be up while lose the OSPF neighborship with LAN layer 3 devices and would like the router to be able to send that trap.
I checked the IOS support list and my IOS 12.4.22T1 has this exact MIB listed as supportable.
So in the router, I put in "snmp-server enable traps ospf" and the router generates all below traps related to ospf in it. I have also set the target ip address of where this trap sends to with below config.
snmp-server enable traps ospf state-change
snmp-server enable traps ospf errors
snmp-server enable traps ospf retransmit
snmp-server enable traps ospf lsa
snmp-server enable traps ospf cisco-specific state-change nssa-trans-change
snmp-server enable traps ospf cisco-specific state-change shamlink interface
snmp-server enable traps ospf cisco-specific state-change shamlink neighbor
snmp-server enable traps ospf cisco-specific errors
snmp-server enable traps ospf cisco-specific retransmit
snmp-server enable traps ospf cisco-specific lsa
snmp-server host <ip address> <community-string> frame-relay config ospf snmp
When we test this with service provider, we admin down the layer 3 device in the LAN and my router shows OSPF neighbor down while the LAN interface is up. We asked service provider if they see any traps coming in and they said no. Thus, no ticket is generated.
So my question is do we know which command specific in the router that I need to put in to enable the exact trap that will have this MIB OID 18.104.22.168.22.214.171.124.101 since service provider ONLY monitor any incoming trap with this OID in regards to OSPF?
Should I do debug ip packets next time when we test this again? I guess I want to see how I can have proof that the router did send out the trap to the WAN? Which debug command will best to turn on to get that information so we can see if the router has generated that exact trap with that exact OID or not?
The version of the OSPF-MIB loaded in Cisco.com is a bit old. Try my tool at http://jaguar.ir.miami.edu/~marcus/snmptrans.html . I try and keep the MIBs there more up-to-date. If you need a recent copy of the OSPF-TRAP-MIB, I have posted it here.
The object, ospfNbrState is not the same as the trap ospfNbrStateChange. The former is an object which will be a variable binding within the latter SNMP notification.