The trap-threshold error-percentage command configures the alarm threshold for the percentage of CRC packets against all the received packets on an interface and alarm interval.
The undo trap-threshold error-percentage command deletes the configured alarm threshold and interval.
By default, the alarm threshold and interval are not configured.
trap-threshold error-percentage threshold-value interval interval-value
undo trap-threshold error-percentage [ threshold-value interval interval-value ]
Parameter | Description | Value |
---|---|---|
threshold-value |
Specifies the alarm threshold for the percentage of CRC packets against all the received packets on the interface. |
The value is an integer that ranges from 1 to 50. NOTE:
You are advised to set the threshold to be smaller than the alarm threshold configured in the error-down-threshold error-percentage command. |
interval interval-value |
Specifies the interval for calculating the percentage of CRC packets against all the received packets on the interface. |
The value is an integer that ranges from 10 to 65535, in seconds. |
Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view
Usage Scenario
When an interface receives too many CRC packets, packet forwarding is affected. To enable the device to report the corresponding alarm if the percentage of received CRC packets against all the received packets within the specified period exceeds the alarm threshold, run this command.
Precautions
This command is mutually exclusive to the trap-threshold error-statistics command. After this command is configured, the trap-threshold error-statistics command configuration does not take effect.
# Set the alarm threshold for the percentage of CRC packets against all the received packets to 10% and the interval for calculating the percentage of CRC packets against all the received packets to 20 seconds on GE0/0/1.
<HUAWEI> system-view [HUAWEI] interface GigabitEthernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] trap-threshold error-percentage 10 interval 20