I installed SNMP and want to enable BGP traps in FreeBSD9.2. I added this to the configuration file snmpd.conf to receive traps:
It works (every time one interface goes up, the linkUpTrap is sent).
My problem is: I want to enable BGP Trap and load BGP4-MIB and bgpTraps (OID: 1.3.6.1.2.1.15.7) that consist of two traps bgpEstablished and bgpBackwardTransition. Expected-Values of this trap are bgpPeerLastError and BgpPeerState.
I think BgpPeerState=6 means bgpEstablished trap sent.
But how to check that the Backward-trans trap happens? And how to configure with the monitor command? And another trap such as RSVP, PIM, ...
Thanks a lot for your answer.
Code:
trapcommunity public
trapsink localhost public
monitor -r 60 -e linkUpTrap "Generate TRAP-linkUp" ifOperStatus != 2
My problem is: I want to enable BGP Trap and load BGP4-MIB and bgpTraps (OID: 1.3.6.1.2.1.15.7) that consist of two traps bgpEstablished and bgpBackwardTransition. Expected-Values of this trap are bgpPeerLastError and BgpPeerState.
I think BgpPeerState=6 means bgpEstablished trap sent.
Code:
monitor -r 60 -e BGPestablishTrap "Generate TRAP-bpg" BgpPeerState == 6
But how to check that the Backward-trans trap happens? And how to configure with the monitor command? And another trap such as RSVP, PIM, ...
Thanks a lot for your answer.