hi,
Yes , you need to apply following commands on switch :
switch(config)#errdisable recovery cause all
switch(config)#errdisable recovery interval 30
any event on switch which makes port to go in errdiable mode will recover itself within 30 sec. you cant set value less than 30 sec.
you can also define specific conditions other than "all" like loopback, udld, linkflap etc...
Thanks
Aashish C