The mib-data optical-module sample-interval command sets the sampling interval for optical module information in the MIB performance module.
The undo mib-data optical-module sample-interval command restores the default setting.
By default, the interval is 30 seconds.
mib-data optical-module sample-interval interval-value
undo mib-data optical-module sample-interval
Parameter | Description | Value |
---|---|---|
interval-value |
Specifies a sampling interval for optical module information in the MIB performance module. |
The value is an integer in the range from 10 to 300, in seconds. |
Usage Scenario
It takes a long time for the NMS to query real-time optical module information on a device using hwOpticalModuleInfoTable in the MIB, especially when the device has a large number of optical modules installed. To solve this problem, you can configure devices to periodically sample optical module information. Then, the NMS can directly obtain sampling information about optical modules, which improves efficiency.
Precautions
When you run the mib-data optical-module sample-interval command multiple times, only the latest configuration takes effect.
The shorter the sampling interval, the higher the CPU usage.