The set flow-change-ratio { input-threshold | output-threshold } upper-limit command sets the trap threshold for a sudden traffic volume change on interfaces.
The undo set flow-change-ratio { input-threshold | output-threshold } upper-limit command restores the default trap threshold for a sudden traffic volume change on interfaces.
By default, the trap threshold for a sudden traffic volume change on interfaces is 50%.
The set flow-change-ratio start-check bandwidth-usage command sets the lower threshold of the initial bandwidth usage percentage for triggering a trap.
The undo set flow-change-ratio start-check bandwidth-usage command restores the default lower threshold of the initial bandwidth usage percentage for triggering a trap.
By default, the lower threshold of the initial bandwidth usage percentage for triggering a trap is 20%.
set flow-change-ratio { input-threshold | output-threshold } upper-limit threshold
set flow-change-ratio start-check bandwidth-usage bandwidth-usage-threshold
undo set flow-change-ratio { input-threshold | output-threshold } upper-limit
undo set flow-change-ratio start-check bandwidth-usage
Parameter | Description | Value |
---|---|---|
input-threshold | Specifies the trap threshold for a sudden traffic volume change in the inbound direction of interfaces. | - |
output-threshold | Specifies the trap threshold for a sudden traffic volume change in the outbound direction of interfaces. | - |
upper-limit threshold | Specifies the threshold for the traffic volume change percentage on interfaces. | The value is an integer that ranges from 0 to 100. The default value is 50. |
start-check | Indicates that the switch checks the initial bandwidth usage when a trap is triggered. | - |
bandwidth-usage bandwidth-usage-threshold | Specifies the lower threshold of the initial bandwidth usage percentage for triggering a trap. | The value is an integer that ranges from 0 to 100. The default value is 20. |
To allow the switch to detect real-time traffic volume changes on interfaces, you can run this command to set the trap threshold for a sudden traffic volume change on interfaces and the lower threshold of the initial bandwidth usage percentage for triggering a trap.
Traffic volume change percentage on interfaces = |Interface rate in the current traffic statistics collection interval - Interface rate in the previous traffic statistics collection interval| / Interface rate in the previous traffic statistics collection interval
Configuration ImpactIf the trap function for a sudden traffic volume change is enabled (using the snmp-agent trap enable feature ifpdt trap-name hwInputRateChangeOverThresholdNotice or snmp-agent trap enable feature ifpdt trap-name hwOutputRateChangeOverThresholdNotice command) after the set flow-change-ratio command is enabled, a trap will be generated when the traffic volume change percentage on interfaces exceeds the specified threshold (value of threshold) and the bandwidth usage percentage is not lower than the lower threshold (value of bandwidth-usage-threshold).
PrecautionsYou can run the set flow-stat interval command to configure the traffic statistics collection interval on interfaces. The default interval is 300 seconds.