The snmp-agent trap enable feature-name ospf command enables the trap function for the OSPF module.
The undo snmp-agent trap enable feature-name ospf command disables the trap function for the OSPF module.
By default, the trap function is disabled for the OSPF module.
snmp-agent trap enable feature-name ospf [ trap-name { ospfifauthfailure | ospfifconfigerror | ospfifrxbadpacket | ospfifstatechange | ospflsdbapproachingoverflow | ospflsdboverflow | ospfmaxagelsa | ospfnbrrestarthelperstatuschange | ospfnbrstatechange | ospfnssatranslatorstatuschange | ospforiginatelsa | ospfrestartstatuschange | ospftxretransmit | ospfvirtifauthfailure | ospfvirtifconfigerror | ospfvirtifrxbadpacket | ospfvirtifstatechange | ospfvirtiftxretransmit | ospfvirtnbrrestarthelperstatuschange | ospfvirtnbrstatechange | hwospfv2intraareadripaddressconflict | hwospfv2intraarearouteridconflict | hwospfv2intraarearouteridconflictrecovered | hwospfv2peerflappingsuppressstatuschange } ]
undo snmp-agent trap enable feature-name ospf [ trap-name { ospfifauthfailure | ospfifconfigerror | ospfifrxbadpacket | ospfifstatechange | ospflsdbapproachingoverflow | ospflsdboverflow | ospfmaxagelsa | ospfnbrrestarthelperstatuschange | ospfnbrstatechange| ospfnssatranslatorstatuschange | ospforiginatelsa | ospfrestartstatuschange | ospftxretransmit | ospfvirtifauthfailure | ospfvirtifconfigerror | ospfvirtifrxbadpacket | ospfvirtifstatechange | ospfvirtiftxretransmit | ospfvirtnbrrestarthelperstatuschange | ospfvirtnbrstatechange | hwospfv2intraareadripaddressconflict | hwospfv2intraarearouteridconflict | hwospfv2intraarearouteridconflictrecovered | hwospfv2peerflappingsuppressstatuschange } ]
Parameter | Description | Value |
---|---|---|
trap-name | Enables the traps of OSPF events of specified types. | - |
hwospfv2intraareadripaddressconflict | Enables the traps of the IP addresses conflict of DRs in an intra area. | By default, this trap is enabled. |
hwospfv2intraarearouteridconflict | Enables the traps of the router IDs conflict in an intra area. | By default, this trap is enabled. |
ospfifauthfailure | Enables the traps of the failure of the interface authentication. | By default, this trap is disabled. |
ospfifconfigerror | Enables the traps of errors of the interface configuration. | By default, this trap is disabled. |
ospfifrxbadpacket | Enables the traps of received bad packets. | By default, this trap is disabled. |
ospfifstatechange | Enables the traps of changes of the interface state. | By default, this trap is disabled. |
ospflsdbapproachingoverflow | Enables the traps of LSDB overflow. | By default, this trap is disabled. |
ospflsdboverflow | Enables the traps of LSDB overflow. | By default, this trap is disabled. |
ospfmaxagelsa | Enables the traps of Max Age of LSA. | By default, this trap is disabled. |
ospfnbrrestarthelperstatuschange | Enables the traps of changes of the neighbor state. | By default, this trap is disabled. |
ospfnbrstatechange | Enables the traps of changes of the state of the helper during GR. | By default, this trap is disabled. |
ospfnssatranslatorstatuschange | Enables the traps of the status change of the NSSA switch converting Type7 LSAs to Type5 LSAs. | By default, this trap is disabled. |
ospforiginatelsa | Enables the traps of LSAs that are locally generated. | By default, this trap is disabled. |
ospfrestartstatuschange | Enables the traps of changes of the state of the restarter during GR. | By default, this trap is disabled. |
ospftxretransmit | Enables the traps of the receiving and sending of packets on the interface. | By default, this trap is disabled. |
ospfvirtifauthfailure | Enables the traps of failure of the virtual interface authentication. | By default, this trap is disabled. |
ospfvirtifconfigerror | Enables the traps of error of the virtual interface configuration. | By default, this trap is disabled. |
ospfvirtifrxbadpacket | Enables the traps of the bad packet that is received on the virtual interface. | By default, this trap is disabled. |
ospfvirtifstatechange | Enables the traps of changes of the virtual interface state. | By default, this trap is disabled. |
ospfvirtiftxretransmit | Enables the traps of sending and receiving of packets on the virtual interface. | By default, this trap is disabled. |
ospfvirtnbrrestarthelperstatuschange | Enables the traps of changes of the GR helper state of neighboring nodes on the virtual link. | By default, this trap is disabled. |
ospfvirtnbrstatechange | Enables the traps of changes of the state for the neighbor of the virtual-link. | By default, this trap is disabled. |
hwospfv2intraarearouteridconflictrecovered | The OSPF router ID conflict is resolved. | By default, this trap is enabled. |
hwospfv2peerflappingsuppressstatuschange | The status of OSPF neighbor relationship flapping suppression changed. | By default, this trap is disabled. |