< Home

reset l2protocol-tunnel statistics

Function

The reset l2protocol-tunnel statistics command clears statistics about Layer 2 protocol packets that are transparently transmitted on an interface.

Format

reset l2protocol-tunnel statistics interface-type interface-number [ { protocol-type } &<1-16> | user-defined-protocol protocol-name ]

Parameters

Parameter

Description

Value

interface-type interface-number

Clears statistics about Layer 2 protocol packets that are transparently transmitted on a specified interface.
  • interface-type specifies the type of an interface.

  • interface-number specifies the number of an interface.

The specified interface must be enabled with Layer 2 protocol tunneling.

-

protocol-type

Clears statistics about transparently transmitted packets of a specified protocol.

The protocol type can be:
  • Spanning Tree Protocol (STP)
  • Link Aggregation Control Protocol (LACP)
  • Ethernet Operation, Administration, and Maintenance 802.3ah (EOAM3ah)
  • Link Layer Discovery Protocol (LLDP)
  • GARP VLAN Registration Protocol (GVRP)
  • GARP Multicast Registration Protocol (GMRP)
  • HUAWEI Group Management Protocol (HGMP)
  • VLAN Trunking Protocol (VTP)
  • Unidirectional Link Detection (UDLD)
  • Port Aggregation Protocol (PAGP)
  • Cisco Discovery Protocol (CDP)
  • Per VLAN Spanning Tree Plus (PVST+)
  • Shared Spanning Tree Protocol (SSTP)
  • Dynamic Trunking Protocol (DTP)
  • Device Link Detection Protocol (DLDP)
  • Ethernet Synchronization Message Channel (ESMC)
You can select one or more Layer 2 protocols.

user-defined-protocol protocol-name

Clears statistics about transparently transmitted packets of a user-defined protocol. protocol-name specifies the name of a user-defined protocol.

The value is a string of 1 to 31 case-sensitive characters without spaces.

When double quotation marks are used around the string, spaces are allowed in the string.

Views

User view

Default Level

3: Management level

Usage Guidelines

To collect statistics about Layer 2 protocol packets transparently transmitted on an interface in a specified period, you must reset original statistics on the interface.

When using the reset l2protocol-tunnel statistics command, pay attention to the following points:

  • If you specify an interface but do not specify any protocol, statistics about all Layer 2 protocol packets on the interface are reset.

  • If you specify an interface and a protocol, statistics about packets of the specified protocol are reset.

Statistics about Layer 2 protocol packets cannot be restored after being deleted. Confirm your action before you use this command.

Example

# Reset statistics about all Layer 2 protocol packets on GE0/0/1.

<HUAWEI> reset l2protocol-tunnel statistics gigabitethernet 0/0/1

# Reset statistics about STP packets on GE0/0/2.

<HUAWEI> reset l2protocol-tunnel statistics gigabitethernet 0/0/2 stp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >