STP/RSTP maintenance includes resetting STP/RSTP statistics.
- Clearing STP/RSTP Statistics
- Monitoring the Statistics on STP/RSTP Topology Changes
The statistics about STP/RSTP topology changes can be viewed. If the statistics increase, network flapping occurs.
Clearing STP/RSTP Statistics
Context

STP/RSTP statistics cannot be restored after being cleared.
Procedure
- Run the reset stp [ interface interface-type interface-number ] statistics command to clear spanning-tree statistics.
- Run the reset stp error packet statistics to clears the statistics of error STP packets.
Monitoring the Statistics on STP/RSTP Topology Changes
The statistics about STP/RSTP topology changes can be viewed. If the statistics increase, network flapping occurs.
Procedure
- Run the display stp topology-change command to view the statistics about STP/RSTP topology changes.
- Run the display stp [ interface interface-type interface-number ] [ brief ] command to view the spanning-tree status and statistics.