< Home

set if-mib sample-interval

Function

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.

Format

set if-mib sample-interval interval-value

undo set if-mib sample-interval [ interval-value ]

Parameters

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

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
  • If the command has been run for multiple times, only the latest configuration takes effect.
  • When the undo set if-mib sample-interval [ interval-value ] command is run, if the interval is specified, the value must be consistent with the current configuration.
  • A short interval will cause a high CPU usage.

Example

# Set the interval of collecting traffic statistics on an interface to 100 seconds.

<HUAWEI> system-view
[HUAWEI] set if-mib sample-interval 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >