record-interval
Function
The record-interval command sets the number of performance statistics collection cycles after which the system generates a statistics file.
The undo record-interval command restores the default number of performance statistics collection cycles.
- If a short performance statistics collection cycle (5, 10, 15, 30, or 60 minutes) is set, the system generates a statistics file after four cycles.
- If a long performance statistics collection cycle (1440 minutes) is set, the system generates a statistics file after one cycle.
Parameters
Parameter | Description | Value |
---|---|---|
interval | Specifies the number of performance statistics collection cycles. | The value is an integer. The value range depends on
the performance statistics collection cycle:
|
Usage Guidelines
After you configure a performance statistics collection task, the system periodically saves collected performance data to statistics files. To set the interval at which the system generates statistics files, run the record-interval command. Then the system generates performance statistics files every cycle x interval minutes, and automatically saves the performance data in the files. The system generates a maximum of four statistics files for each performance statistics collection task, and saves performance statistics files to the path flash: /pmdata or sdcard: /pmdata by default.
Example
# Configure the system to save performance data to a statistics file every three performance statistics collection cycles. If the performance statistics collection cycle is 5 minutes, the system saves a performance data to a statistics file every 15 minutes.
<AC6605> system-view [AC6605] pm [AC6605-pm] statistics-task task1 [AC6605-pm-statistics-task1] statistics-cycle 5 Warning: All data of the statistics task will be deleted. Continue? [Y/N]: y [AC6605-pm-statistics-task1] record-interval 3 Warning: This operation will cause some data to be lost. Continue? [Y/N]: y