< Home

statistics-cycle

Function

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.

Format

statistics-cycle cycle

undo statistics-cycle

Parameters

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.

Views

Performance statistics task view

Default Level

2: Configuration level

Usage Guidelines

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

Running the statistics-cycle command in the performance statistics task view has the following impacts:
  • Performance statistics of the performance statistics task are deleted.
  • The default interval at which the system generates performance statistics files is used. In the case of a short statistics collection interval, the system generates a performance statistics file every four performance statistics collection intervals; in the case of a long statistics collection interval, the system generates a performance statistics file every one performance statistics collection interval.

Prerequisites

The performance statistics function has been enabled using the statistics enable command.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >