Configuring a Performance Statistics Task

This section describes how to configure a performance statistics task. After the performance statistics collection interval is set and an instance is bound to a performance statistics task, the system starts collecting the performance statistics.

Context

A performance statistics task enables the system to periodically collect performance statistics for a service. In a performance statistics task, basic performance statistics functions are implemented, and performance statistics files can be generated.

Perform the following steps on the device:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run pm

    The performance management (PM) view is displayed.

  3. Run statistics enable

    The performance statistics function is enabled.

  4. Run statistics-task task-name

    A performance statistics task is created, and the performance statistics task view is displayed.

  5. Run statistics-cycle cycle

    The performance statistics collection interval is set.

  6. Run binding instance-type instance-type { all | instance { vpn-instance-name } & <1-8> }

    An instance is bound to the performance statistics task.

    After an instance is bound to a performance statistics task, the system collects the performance statistics about the instance and generates a statistics file.

  7. (Optional) Run measure disable instance-type instance-type measure measure-name

    Measurement is disabled for a statistics counter of the instance bound to the performance statistics task.

    To view statistics counters of the instance bound to a performance statistics task, run the display pm measure-info instance-type instance-type-name command. To deactivate a specific statistics counter of the instance bound to a performance statistics task, run the measure disable instance-type instance-typemeasure measure-name command to disable the measurement for the statistics counter.

  8. Run either of the following commands:

    • Run the record-file disable command to disable the generation of a performance statistics file.

      Run this command when you do not want the system memory to be occupied by many performance statistics files.

    • If the performance statistics file generation function is left enabled, you can run the record-interval interval command to set the number of intervals at which performance statistics are collected.

      After the command is run, the system generates performance statistics files every cycle x interval minutes and automatically saves the performance statistics in the files.

      Run the file-format { text | xml } command to set the format for performance statistics files.

  9. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >