< Home

snmp-agent trap enable feature-name ospf

Function

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.

Format

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 } ]

Parameters

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To enable the traps of one or more events, you can specify trap-name.

Example

# Enable the trap of the status change of OSPF neighbors on the virtual link.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name ospf trap-name ospftxretransmit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >