Configuring Basic Functions for Bulk Statistics Collection
Context
An NMS sends SNMP request messages one by one in polling mode to obtain information from a device, and the device sends response messages one by one. As a result, a large number of messages are exchanged between the NMS and device. These messages consume high bandwidth and many system resources on the device. The bulk statistics collection function of the switch enables the NMS to obtain device information more efficiently. This function uses MIB interfaces to obtain device information, as defined in SNMP.
To enable the NMS to monitor an object on a device, associate the SNMP agent with the corresponding MIB object on the device. Then the device uses the MIB interface to periodically collect statistics about the specified object. The statistics collection interval can be set to 5 minutes, 10 minutes, 15 minutes, or 30 minutes. The default statistics collection interval is 5 minutes. After collecting statistics about the object within the collection interval, the device compresses the collected data and sends the data to the NMS through FTP or TFTP.
Statistics objects can be added to the device dynamically. You can configure new statistics objects when the device is collecting statistics about an object. The device starts to collect statistics about another object when it finishes collecting statistics about the current object.
Procedure
- Run system-view
The system view is displayed.
- Run bulk-stat enable
The bulk statistics collection function is enabled.
- Run bulk-file file-name
A bulk file is created and the bulk file view is displayed.
- Run object oid class { single | column [ start-index start-index ] [ instance-number instance-number ] }
A statistic object is added to the bulk file.
- (Optional) Run collect interval interval
The statistics collection interval is set for the bulk file.
By default, the statistics collection interval is 5 minutes.
- (Optional) Run transfer interval interval
The upload interval of the statistics is set for the bulk file.
By default, the upload interval is 5 minutes.
- Run transfer { primary | secondary } protocol { tftp | { { ftp | sftp } username user-name password password } } { host host-name } [ path destination-path ]
The upload mode and URL are set for the bulk file.
- Run collect enable
The bulk file is enabled.