statistic enable (VNI view)

Function

The statistic enable command enables VXLAN traffic statistics collection.

The undo statistic enable command disables VXLAN traffic statistics collection.

By default, VXLAN traffic statistics collection is disabled.

Format

statistic enable

undo statistic enable

Parameters

None

Views

VNI view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nvo3 write

Usage Guidelines

Usage Scenario

By default, VXLAN traffic statistics collection is disabled. Before you check VXLAN traffic statistics of a VNI for fault locating, run the statistic enable command in the VNI view to enable VXLAN traffic statistics collection. If traffic statistics collection is not enabled for a VNI, you cannot obtain the VXLAN traffic statistics of the VNI.

Configuration Impact

If a large number of VXLAN packets exist, the device counts all these packets and subsequently stores large amounts of statistics, causing device operation performance to deteriorate. If VXLAN traffic statistics collection is not needed, run the undo statistic enable command to disable the function.

Follow-up Procedure

Run the display vxlan statistics vni vni-id command to view traffic statistics based on a specified VNI ID. The command output helps locate faults.

Example

# Enable VXLAN traffic statistics collection.
<HUAWEI> system-view
[~HUAWEI] vni 10
[*HUAWEI-vni10] statistic enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >