Configure options to determine how collected bulk statistics (MIB) data are transferred from the device to a remote management station.
Set up periodic transfer of collected bulk MIB data using SNMP bulkstat, ensuring efficient file management and reliable delivery to a network management system.
Before starting, ensure you have defined both bulk statistics object lists and bulk statistics schemas. These prerequisites must be configured to enable bulk statistics transfer. The following steps guide you through configuring the transfer options for periodic MIB data collection.
Procedure
-
Define the bulk statistics transfer configuration.
Example:
Router# configure terminal
Router(config)# snmp-server mib bulkstat transfer bulkstat1
-
Set the maximum buffer size (in bytes) for the data file:
Example:
Router(config-bulk-tr)#buffersize 3072
The valid range is from 1024 to 2147483647 bytes.
Note
If the maximum buffer size for a bulk statistics file is reached before the transfer interval time expires, all additional data received is deleted. To correct this behavior, you can decrease the polling frequency, or increase the size of the bulk statistics buffer.
-
Specify the format of the statistics file:
Example:
Router(config-bulk-tr)#format schemaASCII
Note
Only schemaASCII is supported for transfers.
-
Associate one or more schemas with the transfer configuration:
Example:
Router(config-bulk-tr)#schema TenGigE 0/5/0/11/1
-
Set how often the statistics file is transferred (in minutes).
Example:
Router(config-bulk-tr)#transfer-interval 20
-
Define the primary transfer destination and protocol (URL).
Example:
Router(config-bulk-tr)# url primary
ftp://user:password@host/folder/bulkstat1
-
Define a secondary (backup) transfer destination:
Example:
Router(config-bulk-tr)# url secondary
tftp://10.1.0.1/tftpboot/user/bulkstat1
-
Set the number of transfer retries if the transfer fails:
Example:
Router(config-bulk-tr)#retry 1
-
Set how long (in minutes) the statistics file is retained after transfer:
Example:
Router(config-bulk-tr)#retain 60
The valid range is from 0 to 20000. For retries, retain must be greater than 0.
-
Enable the bulk statistics transfer process.
Example:
Router(config-bulk-tr)#enable
The device is now configured to periodically collect and transfer bulk statistics (MIB data) to the specified network management station. Data transfer will begin based on the defined interval and will follow your chosen file size, format, destinations, and retry options.