trap-threshold tx-pause

Function

The trap-threshold tx-pause command sets upper and lower thresholds for the number of tx-pause errors and the interval at which tx-pause errors are collected.

The undo trap-threshold tx-pause command restores the default upper and lower thresholds for the number of tx-pause errors and the default interval at which alarms are reported.

By default, the upper and lower thresholds for the number of tx-pause errors are 500 and 100, respectively, and alarms are reported every 10 seconds.

Format

trap-threshold tx-pause high-threshold high-threshold low-threshold low-threshold interval-second interval

undo trap-threshold tx-pause

Parameters

Parameter Description Value
high-threshold high-threshold

Sets an upper threshold for the tx-pause alarm.

The value is an integer ranging from 1 to 4294967295, and the default value is 500.

low-threshold low-threshold

Sets a lower threshold for the tx-pause alarm.

The value is an integer ranging from 1 to 4294967295, and the default value is 100.

interval-second interval

Sets a detection interval.

The value is an integer in the range from 1 to 65535, in seconds. The default value is 10.

Views

100GE interface view, 10G LAN interface view, 10G WAN interface view, 25GE interface view, 40GE interface view, 50GE interface view, FlexE interface view, GE optical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
device-mgr write

Usage Guidelines

Usage Scenario

To set an upper threshold, lower threshold, and detection interval for the TX-pause error alarm, run the trap-threshold tx-pause command. After this configuration is performed, a device generates an alarm and sends it to an NMS only when the number of error packets sent or received by the device exceeds the upper threshold for three consecutive detection intervals. The device sends a clear alarm to the NMS only when the number of error packets sent or received by the device falls below the lower threshold for three consecutive detection intervals.

Precautions

To allow the configured thresholds to take effect, run the snmp-agent trap enable port command first to enable the tx-pause alarm function.

The high-threshold must be greater than or equal to low-threshold.

Example

# On GE 0/1/0, set the upper threshold of the TX-pause error alarm to 1500, lower threshold to 150, and detection interval to 15 seconds.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] trap-threshold tx-pause high-threshold 1500 low-threshold 150 interval-second 15
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >