Interface Error Disable and Auto Recovery
Use these M4500 CLI commands to configure automatic recovery of error-disabled interfaces and display error-disabled ports and recovery settings.
Interface error disable automatically disables an interface when an error is detected; no traffic is allowed until the interface is either manually re-enabled or, if auto recovery is configured, the configured auto recovery time interval has passed.
For interface error disable and auto recovery, an error condition is detected for an interface, the interface is placed in a diagnostic disabled state by shutting down the interface. The error disabled interface does not allow any traffic until the interface is re-enabled. The error disabled interface can be manually enabled. Alternatively administrator can enable auto recovery feature. Auto Recovery re-enables the interface after the expiry of configured time interval.
errdisable recovery cause
Use this command to enable auto recovery for a specified cause or all causes. When auto recovery is enabled, ports in the diag-disable state are recovered (link up) when the recovery interval expires. If the interface continues to experience errors, the interface may be placed back in the diag-disable state and disabled (link down). Interfaces in the diag-disable state can be manually recovered by entering the no shutdown command for the interface.
| Default | None |
| Format | errdisable recovery cause {all | arp-inspection | bpduguard | bcast-storm | bpdustrom | dhcp-rate-limit | mcast-storm | port-security | sfp-mismatch | ucast-storm | udld | link-flap | loop-detection} |
| Mode | Global Config |
no errdisable recovery cause
Use this command to disable auto recovery for a specific cause. When disabled, auto recovery will not occur for interfaces in a diag-disable state due to that cause.
| Format | no errdisable recovery cause {all | arp-inspection | bpduguard | bcast-storm | bpdustrom | dhcp-rate-limit | mcast-storm | port-security | sfp-mismatch | ucast-storm | udld | link-flap | loop-detection} |
| Mode | Global Config |
errdisable recovery interval
Use this command to configure the auto recovery time interval. The auto recovery time interval is common for all causes. When the recovery interval expires, the system attempts to bring interfaces in the diag-disable state back into service (link up).
| Default | 300s |
| Format | errdisable recovery interval <30-86400> |
| Mode | Global Config |
no errdisable recovery interval
Use this command to return the auto recovery interval to the default settings.
| Format | no errdisable recovery interval |
| Mode | Global Config |
show errdisable recovery
Use this command to display the errdisable configuration status of all configurable causes.
| Format | show errdisable recovery |
| Mode | Privileged EXEC |
Display Message
| Parameter | Definition |
|---|---|
| arp-inspection | Enable/Disable status of arp-inspection auto recovery. |
| bcast-storm | Enable/Disable status of broadcast storm auto recovery. |
| mcast-storm | Enable/Disable status of multicast storm auto recovery. |
| ucast-storm | Enable/Disable status of unicast storm auto recovery. |
| bpduguard | Enable/Disable status of BPDU guard auto recovery. |
| port-security | Enable/Disable status of port security auto recovery. |
| dhcp-rate-limit | Enable/Disable status of dhcp-rate-limit auto recovery. |
| sfp-mismatch | Enable/Disable status of sfp-mismatch auto recovery. |
| udld | Enable/Disable status of UDLD auto recovery. |
| bpdustorm | Enable/Disable status of bpdustorm auto recovery. |
| time interval | Time interval for auto recovery in seconds. |
| link-flag | Enable/Disable status of link-flap. |
| loop-detection | Enable/Disable status of loop protection. |
Example: The following example shows the CLI display output for the command show errdisable recovery.
#show errdisable recovery
Errdisable Reason Auto-recovery Status
------------------ ---------------------
dhcp-rate-limit Disabled
arp-inspection Disabled
udld Disabled
bcast-storm Disabled
mcast-storm Disabled
ucast-storm Disabled
bpdustorm Disabled
sfp-mismatch Disabled
port-security Disabled
Timeout for Auto-recovery from D-Disable state 300
show interfaces status err-disabled
Use this command to display the interfaces that are error disabled and auto-recovery enabled (auto-recovery timer left more than zero).
| Format | show interface status err-disabled |
| Mode | Privileged EXEC |
Display Message
| Parameter | Definition |
|---|---|
| interface | An interface that is error disabled. |
| Errdisable | The cause of the interface being error disabled. |
| Reason | |
| Auto-Recovery Time Left | The amount of time left before auto recovery begins. |