trap-threshold output-error

Function

The trap-threshold output-error command sets upper and lower thresholds for the number of output errors and the interval at which output error alarms are generated.

The undo trap-threshold output-error command restores the default upper and lower thresholds for the number of output errors and the default interval at which alarms are generated.

By default, upper and lower thresholds for the number of output errors are 1000 and 100, respectively, and output error alarms are reported every 10 seconds.

Format

trap-threshold output-error high-threshold high-threshold low-threshold low-threshold interval-second interval

undo trap-threshold output-error

Parameters

Parameter Description Value
high-threshold high-threshold

Specifies an upper alarm threshold.

The value is an integer ranging from 1 to 4294967295. The default value is 1000.

low-threshold low-threshold

Specifies a lower alarm threshold.

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

interval-second interval

Specifies a detection interval for input or output errors.

The value is an integer in seconds ranging from 1 to 65535. 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, 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, detection interval for the input or output error alarm, run the trap-threshold command. After this configuration is performed, a device generates an alarm and sends it to an NMS only when the number of input or output error frames reaches the upper threshold for three consecutive detection intervals. The device sends a clear alarm to the NMS only when the number of input or output error frames falls below the lower threshold for three consecutive detection intervals.

Precautions

The configured thresholds take effect only when the output alarm function is enabled. You can run the snmp-agent trap enable port output-error command to enable the output alarm function on an interface.

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

Example

# Set thresholds for the number of output errors and the interval at which output error alarms are generated.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] trap-threshold output-error high-threshold 1002 low-threshold 100 interval-second 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >