< Home

measure disable

Function

The measure disable command disables statistics counters in a performance statistics task.

The undo measure disable or measure enable command enables statistics counters in a performance statistics task.

By default, all statistics counters of the instance bound to the performance statistics collection task are measured.

Format

measure disable [ measure-name ]

undo measure disable [ measure-name ]

measure enable [ measure-name ]

Parameters

Parameter Description Value
measure-name Specifies the name of a statistics counter in a performance statistics collection task.

The value is a string of 1 to 63 case-insensitive characters without spaces. Select statistics counters according to the device configuration.

Views

Performance statistics collection task view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the type of the instance bound to a performance statistics task is specified, statistics counters of instances of the specified type are enabled by default. The measure disable command can be used to disable some or all statistics counters.

After you run the measure disable [ measure-name ] command, some or all statistics counters are disabled. To add one or more counters that have been disabled to the performance statistics task again, run the measure enable [ measure-name ] or undo measure disable [ measure-name ] command to enable these counters.

Prerequisites

An instance has been bound to a performance statistics task using the binding instance-type instance-type-name instance instance-name command.

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

Example

# Disable measurement of the forward-loss-ratio-max counter for ipfpm instances.

<HUAWEI> system-view
[HUAWEI] pm
[HUAWEI-pm] statistics-task task1
[HUAWEI-pm-statistics-task1] binding instance-type ipfpm all
[HUAWEI-pm-statistics-task1] measure disable forward-loss-ratio-max
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >