Why Does a Device Fail to Report Interface Up/Down Traps to the NMS and How Can I Disable the Up/Down Traps of a Specified Interface?
By default, the interface status trap function is globally disabled.
Therefore, when an interface changes status, no trap is generated.
Run the
snmp-agent trap enable feature-name ifnet trap-name {
linkdown |
linkup } command
to enable the interface status trap function globally. When interface
status frequently changes, a large number of traps are sent to the
NMS, increasing the load on the NMS. In this situation, you can disable
the interface status trap function. The procedure is as follows:
- Run the interface interface-type interface-number command to enter the interface
view.
- Run the undo enable snmp trap updown command
to disable the interface status trap function.
The following example shows how to disable the device from sending traps to the NMS when any interface changes its status to Up.
<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name ifnet trap-name linkup
The following example shows how to disable the device from sending traps to the NMS when GE0/0/1 changes its status.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo enable snmp trap updown