Enable a port to automatically recover from the error-disabled state after the expiration of an error recovery timer.
device# configure terminal
device(config)# protocol spanning-tree stp
device(config-stp)# error-disable-timeout enable
device(config-stp)# error-disable-timeout interval 60
device(config-stp)# end
device# show spanning-tree Spanning-tree Mode: Spanning Tree Protocol Root Id: 8000.768e.f805.5800 (self) Bridge Id: 8000.768e.f805.5800 Root Bridge Forward Delay: 15; Hello Time: 2; Max Age: 20; Max-hops: 20 Configured Forward Delay: 15; Hello Time: 2; Max Age: 20; Max-hops: 20 Number of topology change(s): 0 Bpdu-guard errdisable timeout: enabled Bpdu-guard errdisable timeout interval: 60 sec
device# configure terminal device(config)# protocol spanning-tree stp device(config-stp)# error-disable-timeout enable device(config-stp)# error-disable-timeout interval 60 device(config-stp)# end device# show spanning-tree