< Home

snmp-agent trap enable feature-name entityexttrap

Function

The snmp-agent trap enable feature-name entityexttrap command enables the trap function for the ENTITYEXTTRAP module.

The undo snmp-agent trap enable feature-name entityexttrap command disables the trap function for the ENTITYEXTTRAP module.

By default, the trap function is enabled for the ENTITYEXTTRAP module.

Format

snmp-agent trap enable feature-name entityexttrap [ trap-name trap-name ]

undo snmp-agent trap enable feature-name entityexttrap [ trap-name trap-name ]

Parameters

Parameter

Description

Value

trap-name trap-name

Enables or disables the trap function of the specified event for the ENTITYEXTTRAP module.

The value is a trap name. Traps of the ENTITYEXTTRAP module include:
  • hwentityinputratethresholdalarm: The bandwidth usage of incoming traffic exceeds the threshold.

  • hwentityinputratethresholdalarmresume: The bandwidth usage of incoming traffic falls below the threshold.

  • hwentityoutputratethresholdalarm: The bandwidth usage of outgoing traffic exceeds the threshold.

  • hwentityoutputratethresholdalarmresume: The bandwidth usage of outgoing traffic falls below the threshold.

  • hwentityhigerrorpacketthresholdalarm: Incoming packets are discarded because an error is detected during physical layer detection.

  • hwentityhigstatechangenotify: The Higig port status changes.

  • hwentityhigstatedownnotify: The Higig port status remains Down.

  • hwentityruntpacketchecknotify: The number of packet fault recoveries detected on a port exceeds 5000.

  • hwboarddropruntpacketnotify: Some packets of 64 to 86 bytes or 145 to 193 bytes are discarded.

  • hwEntityHigDiscardPacketNotify: An alarm is generated when the number of packets discarded on an HG channel due to congestion within 300s reaches 300.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

After the trap function is enabled on a switch, the switch will generate traps during operation and send the traps to the NMS through the SNMP module. If the trap function is disabled on the switch, the switch will not generate traps and not send traps to the NMS through the SNMP module.

You can specify the parameter trap-name to enable one or more event traps.

Example

# Enable the hwboardsoftwareversionincompatible trap for the ENTITYEXTTRAP module.

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