< Home

reset stp statistics

Function

The reset stp statistics command clears the statistics of a spanning tree.

Format

reset stp [ interface interface-type interface-number ] statistics

Parameters

Parameter Description Value
interface interface-type interface-number Specifies an interface type and the number of the interface.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Sometimes, traffic statistics within a certain period are needed. In this situation, clear the existing statistics before restarting the count.

When you run the reset stp statistics command:

  • If you specify an interface, you can clear the statistics of a spanning tree on the interface.

  • If you do not specify an interface, you can clear the statistics of spanning trees on all interfaces.

Example

# Clear the statistics of spanning trees on GE0/0/1.

<HUAWEI> reset stp interface gigabitethernet 0/0/1 statistics
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >