The set flow-stat interval command sets the interval for collecting the traffic statistics on interfaces.
The undo set flow-stat interval command restores the default interval for collecting traffic statistics on interfaces.
By default, the interval for collecting traffic statistics on interfaces is 300 seconds.
Parameter |
Description |
Value |
---|---|---|
interval-time |
Specifies the interval for collecting traffic statistics on interfaces. |
The value is an integer that ranges from 10 to 600, in seconds. In addition, the value must be a multiple of 10. The default value is 300s. |
Usage Scenario
By using the set flow-stat interval command to set the interval for collecting traffic statistics on interfaces, you can collect and analyze traffic statistics according to your needs. You can also take traffic control measures based on the traffic statistics to prevent network congestion and service interruption.
When congestion occurs, set the interval for collecting traffic statistics on an interface to less than 300 seconds, or 30 seconds if congestion worsens. Then observe the traffic distribution on the interface within a short period of time. If data packets cause congestion, take proper measures to control the rate of the packets.
When the network bandwidth is sufficient and services are running properly, set the interval for collecting traffic statistics on an interface to more than 300 seconds. If the value of any traffic parameter is not within the specified range, change the interval for collecting traffic statistics to observe the traffic volume in real time.
Precautions
The interval configured in the system view takes effect on all the interfaces that use the default interval.
The interval configured in the interface view takes effect only on the current interface.
The interval configured in the interface view takes precedence over the interval configured in the system view.