reset vlan-statistics

Function

The reset vlan-statistics command deletes statistics about user packets with specified VLAN IDs from a specified interface.

This command is supported only on the NetEngine 8000 F1A.

Format

reset vlan-statistics interface { interface-name | interface-type interface-number } all

reset vlan-statistics interface { interface-name | interface-type interface-number } cevlan cevlan-id

reset vlan-statistics interface { interface-name | interface-type interface-number } pevlan pevlan-id [ cevlan cevlan-id ]

Parameters

Parameter Description Value
interface-name

Deletes statistics about user packets from a specified interface name.

-

all

Clear all statistics in the interface.

-

interface interface-type interface-number

Deletes statistics about user packets from a specified interface.

-

cevlan cevlan-id

Deletes statistics about user packets with a specified inner VLAN ID from a specified interface.

The value is an integer ranging from 1 to 4094.

pevlan pevlan-id

Deletes statistics about user packets with a specified single or outer VLAN ID from a specified interface.

The value is an integer ranging from 1 to 4094.

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
bras-control execute

Usage Guidelines

Usage Scenario

Before collecting statistics about user packets with a specified outer VLAN ID, inner VLAN ID, or any VLAN ID on a specified interface within a period, run the reset vlan statistics command to delete the existing traffic statistics of this interface.

  • If interface <interface-type> <interface-number>.<subinterface-number> and pevlan <pevlan-id> are specified, statistics about user packets with <pevlan-id> as the single VLAN ID are deleted from the specified dot1q sub-interface.
  • If interface <interface-type> <interface-number>.<subinterface-number>, pevlan <pevlan-id>, and cevlan <cevlan-id> are specified, statistics about user packets with pevlan-id as the outer VLAN ID and cevlan-id as the inner VLAN ID are deleted from the specified QinQ sub-interface.
  • If interface <interface-type> <interface-number> and pevlan <pevlan-id> are specified, statistics about user packets with pevlan-id as the single VLAN ID are deleted from the dot1q sub-interface on the specified interface and statistics about user packets with pevlan-id as the outer VLAN ID are deleted from the QinQ sub-interface on the specified interface.
  • If interface <interface-type> <interface-number> and cevlan <cevlan-id> are specified, statistics about user packets with cevlan-id as the inner VLAN ID are deleted from the QinQ sub-interface on the specified interface.
  • If all is specified, all user packets with any VLAN ID on the interface are deleted.

Precautions

This command is supported only on the admin VS.

Statistics cannot be restored after you delete them. Therefore, exercise caution when running the reset vlan statistics command.

Example

# Delete statistics about all user packets with any VLAN ID on GE 0/1/1
<HUAWEI> reset vlan-statistics interface GigabitEthernet 0/1/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >