< Home

Configuring the Trap Threshold for a Sudden Traffic Volume Change on Interfaces

Context

To allow the switch to detect real-time traffic volume changes on interfaces, you can perform the following operations to configure the switch to generate a trap 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).

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

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run set flow-change-ratio start-check bandwidth-usage bandwidth-usage-threshold

    The lower threshold of the initial bandwidth usage percentage for triggering a trap is configured.

    By default, the lower threshold of the initial bandwidth usage percentage for triggering a trap is 20%.

  3. Run set flow-change-ratio { input-threshold | output-threshold } upper-limit threshold

    The trap threshold for a sudden traffic volume change on interfaces is configured.

    By default, the trap threshold for a sudden traffic volume change on interfaces is 50%.

    If 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).

  4. (Optional) Run set flow-stat interval

    The traffic statistics collection interval is configured.

    By default, the traffic statistics collection interval is 300 seconds.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >