< Home

snmp-agent trap enable eth-trunk (upgrade-compatible command)

Function

The snmp-agent trap enable eth-trunk command enables the Simple Network Management Protocol (SNMP) trap function on an Eth-Trunk.

The undo snmp-agent trap enable eth-trunk command disables the SNMP trap function on an Eth-Trunk.

By default, the SNMP trap function is disabled on an Eth-Trunk.

Format

snmp-agent trap enable eth-trunk

undo snmp-agent trap enable eth-trunk

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

If the SNMP trap function is enabled on an Eth-Trunk, the system sends a trap to the network management system (NMS) server in case of when the following exceptions occur:
  • The negotiation of the LAG fails.
  • The bandwidth of the LAG is lost. For example, if the lower threshold of the number of active interfaces is set by using the least active-linknumber command and if the number of active interfaces is smaller than this value, the Eth-Trunk becomes Down and the system sends the trap.
  • Part of the bandwidth of the LAG is lost. When one of active interfaces fails, the system sends the trap because the number of active interfaces is reduced.

Example

# Enable the SNMP trap function on an Eth-Trunk so that the trap can be sent to the NMS server promptly when the status of the LAG changes.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable eth-trunk
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic