Cisco IOS switch: what spanning tree changes have occurred in the last 24 hours?

I have been troubleshooting an issue of some voip problems at a site. A colleague who's now left mentioned he had run into some spanning tree issues that had caused problems. He fixed that problem he said by adding "portfast" to the access switches. I'm seeing most of these ports set to port type "access" and BPDU guard is set. But I want to verify that changes in spanning tree are not happening which might affect traffic. Are there command that would let me see recent spanning tree change events? Or would I only be able to see this with debug?
LVL 1
amigan_99Network EngineerAsked:
Who is Participating?
 
JustInCaseConnect With a Mentor Commented:
Generally, you can check number of STP changes and last convergence time with command
show spanning-tree
Also, you can get shorter output by REGEX (can be IOS dependent)
sh spanning-tree | i last_change|VLAN|topology_ch

Also check logs:
sh logg

#sh spanning-tree

 VLAN10 is executing the ieee compatible Spanning Tree protocol
  Bridge Identifier has priority 32768, address 649e.f3d4.01fc
  Configured hello time 2, max age 20, forward delay 15
  We are the root of the spanning tree
  Topology change flag not set, detected flag not set
  Number of topology changes 0 last change occurred 18:14:26 ago
  Times:  hold 1, topology change 35, notification 2
          hello 2, max age 20, forward delay 15
  Timers: hello 1, topology change 0, notification 0, aging 300

sh spanning-tree | i last_change|VLAN|topology_ch
 VLAN10 is executing the ieee compatible Spanning Tree protocol
  Number of topology changes 0 last change occurred 18:18:06 ago
  Times:  hold 1, topology change 35, notification 2
  Timers: hello 1, topology change 0, notification 0, aging 300
 Port 7 (FastEthernet6) of VLAN10 is forwarding
 Port 8 (FastEthernet7) of VLAN10 is forwarding

Open in new window

1
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.