The trap-threshold interval command sets the interval for reporting an alarm if packets are discarded on an interface due to a congestion.
The undo trap-threshold interval command restores the default interval for reporting an alarm if packets are discarded on an interface due to a congestion.
By default, the interval for reporting an alarm if packets are discarded on an interface due to a congestion is 300 seconds.
trap-threshold { input-discard | output-discard } interval interval-value
undo trap-threshold { input-discard | output-discard } interval
Parameter | Description | Value |
---|---|---|
input-discard | Enables the function of reporting an alarm if incoming packets are discarded on an interface due to a congestion. |
- |
output-discard | Enables the function of reporting an alarm if outgoing packets are discarded on an interface due to a congestion. |
- |
interval interval-value | Specifies the interval for reporting an alarm. |
The value is an integer ranging from 60 to 86400, in seconds. It must be an integer multiple of 10. |
Network congestion during service transmission may cause packet loss. If a lot of packets are discarded, services are affected. To improve transmission quality of service flows, you need to enable the device to report alarms to notify users of the current network status if the number of packets discarded due to a congestion in a period of time reaches the specified limit. In this case, you can run the trap-threshold interval command to flexibly adjust the interval for reporting an alarm if packets are discarded due to a congestion based on actual service situations. Such alarms help you know the congestion on the interface. You can determine whether to increase the bandwidth or cancel the bandwidth limit on the interface based on the logs. In this way, the congestion problem can be solved.
PrecautionsAfter this command is run, only the interval for reporting an alarm if packets are discarded on an interface due to a congestion is set. The corresponding alarm is triggered only after the function of reporting an alarm if packets are discarded on an interface due to a congestion is enabled using the trap-threshold enable command and the number of discarded packets on the interface within a specified period of time reaches the alarm threshold.
If this command is executed multiple times, only the latest configuration takes effect.