Beginning with K.12.14 on the 5400zl, 3500yl, 6200yl switches you have add. commands to troubleshoot STP issues:
show spanning-tree debug-counters [instance | ports] (Show spanning tree debug counters information.)
spanning-tree clear-debug-counters [instance | ports] (Clear spanning tree debug counters.)
show spanning-tree root-history
cst Show CST Root changes history.
ist Show IST Regional Root changes history.
msti Show MSTI Regional Root changes history.