< Home

trap-threshold error-statistics

Function

The trap-threshold error-statistics command sets the alarm threshold for error packets and alarm interval.

The undo trap-threshold error-statistics command restores the default alarm threshold for error packets and default alarm interval.

By default, the alarm threshold for error packets is 3 and the alarm interval is 10 seconds.

Format

trap-threshold error-statistics threshold-value interval interval-value

undo trap-threshold error-statistics

Parameters

Parameter

Description

Value

threshold-value

Sets the alarm threshold for error packets.

The value is an integer that ranges from 1 to 65535.

NOTE:

The value should not be greater than the alarm threshold for error packets that cause the interface status to change to Error-Down configured by the error-down-threshold error-statistics command.

interval interval-value

Sets the interval for reporting alarms for error packets.

The value is an integer that ranges from 10 to 65535, in seconds.

Views

Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

The system generates an alarm when the number of error packets received by an interface within an alarm interval exceeds the alarm threshold. If the number of received error packets is 0 in the next alarm interval, the system displays an alarm clearance message.

Example

# Set the alarm threshold for error packets on GE0/0/1 to 10 and the alarm interval to 30 seconds.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] trap-threshold error-statistics 10 interval 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >