The set if-mib sample-interval command configures the interval of collecting traffic statistics on an interface.
The undo set if-mib sample-interval command restores the default interval.
The default interval is 60 seconds.
Parameter | Description | Value |
---|---|---|
interval-value | Specifies the interval of collecting traffic statistics on an interface. |
The value can be 0 or an integer multiple of 10 in the range from 10 to 300, in seconds. The value 0 indicates that the function of periodically collecting traffic statistics on an interface is disabled. |
When the NMS obtains interface traffic statistics through the MIB tables iftable and ifxtable, the time for querying interface traffic statistics in real time is long. When the device has a large number of interfaces, the query efficiency of the NMS is low. To resolve this issue, switches can be configured to periodically collect traffic statistics on interfaces. In this case, the NMS can directly obtain traffic statistics collected on interfaces, improving the query efficiency.
Precautions