traffic-statistics enable (VSI view)

Function

The traffic-statistics enable command enables traffic statistics collection globally in the VSI view.

The undo traffic-statistics enable command disables traffic statistics collection globally in the VSI view.

By default, traffic statistics collection is not enabled globally in the VSI view.

Format

traffic-statistics enable

undo traffic-statistics enable

Parameters

None

Views

VSI--PBBENABLE view, VSI-AUTO view, VSI-BD view, VSI-BVSI view, VSI-DEFAULT view, VSI-IVSI-P2P view, VSI-STATIC view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

To enable traffic statistics collection globally for a VSI, run the traffic-statistics enable command.

Precautions

The traffic-statistics enable (VSI view) and traffic-statistics enable (VSI-LDP view) commands are mutually exclusive.

Example

# Enable traffic statistics collection globally for VSI 1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi 1
[*HUAWEI-vsi-1] traffic-statistics enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >