< Home

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.

By default:
  • 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.

Format

record-interval interval

undo record-interval

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:
  • If a short performance statistics collection cycle is set, the value of interval ranges from 1 to 16, and the default value is 4.
  • If a long performance statistics collection cycle is set, the value of interval ranges from 1 to 3, and the default value is 1.

Views

Performance statistics collection task view

Default Level

2: Configuration level

Usage Guidelines

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

  1. The performance statistics function has been enabled using the statistics enable command.
  2. The cycle has been set using the statistics-cycle command.

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.

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