The trap-threshold { input-rate | output-rate } command sets the threshold for bandwidth utilization of the incoming traffic or bandwidth utilization of the outgoing traffic.
The undo trap-threshold { input-rate | output-rate } command restores the threshold for bandwidth utilization of the incoming traffic or bandwidth utilization of the outgoing traffic to the default value.
trap-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate resume-threshold ]
undo trap-threshold { input-rate | output-rate }
| Parameter | Description | Value |
|---|---|---|
input-rate |
Sets the threshold for bandwidth utilization of the incoming traffic. |
- |
output-rate |
Sets the threshold for bandwidth utilization of the outgoing traffic. |
- |
bandwidth-in-use |
Specifies the threshold for bandwidth utilization. |
It is an integer that ranges from 1 to 100, in percentage. The default value is 90%. |
resume-rate resume-threshold |
Specifies the bandwidth usage threshold for clearing a trap. |
The value is an integer ranging from 1 to the value of bandwidth-in-use. The default value is equal to the value of bandwidth-in-use. |
Ethernet interface view, Ethernet sub-interface view, Layer-2 Ethernet Interface view, Layer-2 Ethernet sub-interface view
This command can't be backed up to the standby device.
The device detects the interface bandwidth usage every 1s. If the bandwidth usage is higher than the upper threshold or lower than the recovery threshold constantly, the device does not send alarms repeatedly.
When the bandwidth utilization exceeds the threshold, the system generates an alarm message and sends it to the NMS. When the bandwidth utilization falls below the threshold, the system generates an alarm recovery message and sends it to the NMS.
The threshold for bandwidth utilization should be set as required.
Outbound bandwidth usage = (Outbound interface rate/Outbound physical interface bandwidth) x 100
Inbound bandwidth usage = (Inbound interface rate/Inbound physical interface bandwidth) x 100
The log-threshold command sets the bandwidth usage threshold for generating a log.
If the offset between the value of bandwidth-in-use and the value of resume-threshold is too large or small, trap information may be frequently displayed.
The log threshold must be lower than the trap threshold, providing efficient protection for services. For example, when the inbound bandwidth usage reaches 80%, a log is generated. If the inbound bandwidth usage continues to increase and reaches 95%, a trap is generated. This ensures that a log is generated for inbound bandwidth usage of 80%, and a trap is generated for inbound bandwidth usage of 95%. Either the log or the trap prompts for a bandwidth increase, preventing service interruption.
# Set the alarm threshold for bandwidth utilization of the outgoing traffic to 80% of the total bandwidth on GE 1/0/0.
<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] trap-threshold output-rate 80
# Restore the threshold for bandwidth utilization of the incoming traffic to the default value on GE 1/0/0.
<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] undo trap-threshold input-rate
<sysname> system-view [sysname] interface GigabitEthernet 0/0/0 [sysname-GigabitEthernet0/0/0] trap-threshold output-rate 80 resume-rate 60