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.
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. |
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.<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