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.
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 Scenario
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 by default.
Prerequisites
# 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.
<HUAWEI> system-view [HUAWEI] pm [HUAWEI-pm] statistics enable [HUAWEI-pm] statistics-task task1 [HUAWEI-pm-statistics-task1] statistics-cycle 5 Warning: All data of the statistics task will be deleted. Continue? [Y/N]: y [HUAWEI-pm-statistics-task1] record-interval 3 Warning: This operation will cause some data to be lost. Continue? [Y/N]: y