statistic discard enable

Function

The statistic discard enable command enables packet statistics collection in a VLAN.

The undo statistic discard enable command disables packet statistics collection in a VLAN.

By default, packet statistics collection is disabled in a VLAN.

Format

statistic discard enable

undo statistic discard enable

Parameters

None

Views

VLAN view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mac write

Usage Guidelines

Usage Scenario

By default, collecting VLAN packet statistics in a VLAN is disabled. Before you view VLAN packet statistics and locate faults, run the statistic enable command in the specific VLAN view to enable the device to collect VLAN packet statistics. If the device is disabled from collecting VLAN packet statistics, you cannot obtain the statistics.

Example

# Enable a device to collect packet statistics in VLAN 10.
<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] statistic enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >