The statistics-cycle command configures the performance statistics collection interval for a performance statistics task.
The undo statistics-cycle command restores the default setting.
The default interval is 15 minutes.
Parameter | Description | Value |
---|---|---|
cycle | Specifies the performance statistics collection interval for a performance statistics task. | The value can be 5, 10, 15, 30, 60, or 1440, in minutes. The default value is 15 minutes. The system defines the interval 1440 minutes as a long interval and the interval 5, 10, 15, 30, or 60 minutes as a short interval. |
Usage Scenario
A specific performance statistics collection interval is set for each performance statistics task. After the performance statistics collection interval is set, bind an instance to the performance statistics task and enable statistics counter measurement so that the system can collect performance statistics at the specified interval. If the statistics interval is set to a small value, the obtained performance statistics are more accurate but more system resources are consumed.
Configuration Impact
Prerequisites
The performance statistics function has been enabled using the statistics enable command.
# Set the performance statistics collection interval for the performance statistics task named task1 to 5 minutes.
<HUAWEI> system-view [HUAWEI] pm [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