< 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, only the hwospfv2intraareadripaddressconflict and hwospfv2intraarearouteridconflict trap functions are enabled.

Format

snmp-agent trap enable feature-name ospf [ trap-name { hwospfv2intraareadripaddressconflict | hwospfv2intraarearouteridconflictrecovered | hwospfv2intraarearouteridconflict | ospfifauthfailure | ospfifconfigerror | ospfifrxbadpacket | ospfifstatechange | ospflsdbapproachingoverflow | ospflsdboverflow | ospfmaxagelsa | ospfnbrrestarthelperstatuschange | ospfnbrstatechange | ospfnssatranslatorstatuschange | ospforiginatelsa | ospfrestartstatuschange | ospftxretransmit | ospfvirtifauthfailure | ospfvirtifconfigerror | ospfvirtifrxbadpacket | ospfvirtifstatechange | ospfvirtiftxretransmit | ospfvirtnbrrestarthelperstatuschange | ospfvirtnbrstatechangehwospfv2intraarearouteridconflictrecoveredhwospfv2peerflappingsuppressstatuschange | hwospfv2deleteroutebypurge | hwospfv2deleteroutebypurgeclear | hwospfv2routebedeletedbypurge | hwospfv2routebedeletedbypurgeclear | hwospfv2thirdpartroutebedeletedbypurge | hwospfv2thirdpartroutebedeletedbypurgeclear } ]

undo snmp-agent trap enable feature-name ospf [ trap-name { hwospfv2intraareadripaddressconflict | hwospfv2intraarearouteridconflictrecovered | hwospfv2intraarearouteridconflict | ospfifauthfailure | ospfifconfigerror | ospfifrxbadpacket | ospfifstatechange | ospflsdbapproachingoverflow | ospflsdboverflow | ospfmaxagelsa | ospfnbrrestarthelperstatuschange | ospfnbrstatechange| ospfnssatranslatorstatuschange | ospforiginatelsa | ospfrestartstatuschange | ospftxretransmit | ospfvirtifauthfailure | ospfvirtifconfigerror | ospfvirtifrxbadpacket | ospfvirtifstatechange | ospfvirtiftxretransmit | ospfvirtnbrrestarthelperstatuschange | ospfvirtnbrstatechangehwospfv2intraarearouteridconflictrecoveredhwospfv2peerflappingsuppressstatuschange | hwospfv2deleteroutebypurge | hwospfv2deleteroutebypurgeclear | hwospfv2routebedeletedbypurge | hwospfv2routebedeletedbypurgeclear | hwospfv2thirdpartroutebedeletedbypurge | hwospfv2thirdpartroutebedeletedbypurgeclear } ]

Parameters

Parameter Description Value
trap-name Enables the traps of OSPF events of specified types. -
hwospfv2intraareadripaddressconflict Enables the traps of Intra-Area DR IP address conflict. By default, this trap is enabled.
hwospfv2intraarearouteridconflictrecovered Enables the traps of Intra-Area Router-id conflict auto recover. By default, this trap is enabled.
hwospfv2intraarearouteridconflict Enables the traps of Intra-Area Router-id conflict. 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 is approaching 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 state of the helper during GR. By default, this trap is disabled.
ospfnbrstatechange Enables the traps of changes of the neighbor state. By default, this trap is disabled.
ospfnssatranslatorstatuschange Enables the traps of the status change of the NSSA router converting Type-7 LSAs to Type-5 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.
hwospfv2deleteroutebypurge Enables the function to generate the trap when the local device flushes OSPF LSAs advertised by other devices. By default, this function is disabled.
hwospfv2deleteroutebypurgeclear Enables the function to generate the trap if the local device does not flush OSPF LSAs advertised by other devices. By default, this function is disabled.
hwospfv2routebedeletedbypurge Enables the function to generate the trap when the OSPF LSAs advertised by the local device are flushed by another device. By default, this function is disabled.
hwospfv2routebedeletedbypurgeclear Enables the function to generate the trap if the OSPF LSAs advertised by the local device are not flushed by another device. By default, this function is disabled.
hwospfv2thirdpartroutebedeletedbypurge Enables the function to generate the trap when the OSPF LSAs advertised by a third device are flushed by another device. By default, this function is disabled.
hwospfv2thirdpartroutebedeletedbypurgeclear Enables the function to generate the trap if the OSPF LSAs advertised by a third device are not flushed by another device. By default, this function is disabled.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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

Example

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

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