Error disabled ports - Recovery


#1

Is there a way to auto recover ports from a err-disabled state?


#2

Yes you can, see below.

Switch(config)#errdisable recovery cause ?

  • all Enable timer to recover from all error causes
  • arp-inspection Enable timer to recover from arp inspection error disable state
  • bpduguard Enable timer to recover from BPDU Guard error
  • channel-misconfig Enable timer to recover from channel misconfig error (STP)
  • dhcp-rate-limit Enable timer to recover from dhcp-rate-limit error
  • dtp-flap Enable timer to recover from dtp-flap error
  • gbic-invalid Enable timer to recover from invalid GBIC error
  • inline-power Enable timer to recover from inline-power error
  • l2ptguard Enable timer to recover from l2protocol-tunnel error
  • link-flap Enable timer to recover from link-flap error
  • link-monitor-failure Enable timer to recover from link monitoring failure
  • loopback Enable timer to recover from loopback error
  • mac-limit Enable timer to recover from mac limit disable state
  • oam-remote-failure Enable timer to recover from OAM detected remote failure
  • pagp-flap Enable timer to recover from pagp-flap error
  • port-mode-failure Enable timer to recover from port mode change failure
  • pppoe-ia-rate-limit Enable timer to recover from PPPoE IA rate-limit error
  • psecure-violation Enable timer to recover from psecure violation error
  • psp Enable timer to recover from psp
  • security-violation Enable timer to recover from 802.1x violation error
  • sfp-config-mismatch Enable timer to recover from SFP config mismatch error
  • storm-control Enable timer to recover from storm-control error
  • udld Enable timer to recover from udld error
  • unicast-flood Enable timer to recover from unicast flood error
  • vmps Enable timer to recover from vmps shutdown error

Switch(config)#errdisable recovery interval ?
<30-86400> timer-interval(sec)

Here is an example for bpduguard recovery:

Switch#show run | section errdisable
errdisable recovery cause bpduguard
errdisable recovery interval 30

Switch#show errdisable recovery 
ErrDisable Reason            Timer Status
-----------------            --------------
arp-inspection               Disabled
bpduguard                    Enabled
channel-misconfig (STP)      Disabled
dhcp-rate-limit              Disabled
dtp-flap                     Disabled
gbic-invalid                 Disabled
inline-power                 Disabled
l2ptguard                    Disabled
link-flap                    Disabled
mac-limit                    Disabled
link-monitor-failure         Disabled
loopback                     Disabled
oam-remote-failure           Disabled
pagp-flap                    Disabled
port-mode-failure            Disabled
pppoe-ia-rate-limit          Disabled
psecure-violation            Disabled
security-violation           Disabled
sfp-config-mismatch          Disabled
storm-control                Disabled
udld                         Disabled
unicast-flood                Disabled
vmps                         Disabled
psp                          Disabled
dual-active-recovery         Disabled
evc-lite input mapping fa    Disabled
Recovery command: "clear     Disabled