trap-threshold output-error (system view)

Function

The trap-threshold output-error command can set the upper and lower alarm thresholds for the output error alarms of all ports on a subcard and the interval for generating the alarm.

The undo trap-threshold output-error command restores the default value of the output error alarm threshold for all ports on a subcard.

By default, the upper threshold of the output error alarm is 1000, the lower threshold is 100, and the interval for generating an error alarm is 10 seconds.

Format

trap-threshold slot slot card cardid output-error high-threshold high-threshold low-threshold low-threshold interval-second interval

undo trap-threshold slot slot card cardid output-error

Parameters

Parameter Description Value
slot slot

Specifies the ID of a slot.

The value is a string of 1 to 63 case-sensitive characters, spaces not supported.

card cardid

Specifies the ID of a registered subcard.

The value is an integer that ranges from 0 to 4294967295.

high-threshold high-threshold

Specifies an upper alarm threshold.

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

low-threshold low-threshold

Specifies a lower alarm threshold.

The value is an integer that ranges 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 that ranges from 1 to 65535. The unit is second. The default value is 10.

Views

System 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

In VS mode, this command is supported only by the admin VS.

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 the output error threshold and interval for all ports on the 0 subcard of the interface board in slot 1.
<HUAWEI> system-view
[~HUAWEI] trap-threshold slot 1 card 0 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 >