# Networking: %PM-4-ERR_DISABLE: psecure-violation error detected on Gi0/5, putting Gi0/5 in err-disable state

**Code:** `Port err-disabled (psecure-violation)` · **Category:** Networking · **Seen on:** Cisco, Networking

The switch shut the port down because a security or protection feature detected a violation.

## Meaning

Read the cause (`show errdisable recovery`), fix it (extra MAC addresses with port security, BPDU guard, loop or link-flap), then recover with `shutdown` / `no shutdown` or enable `errdisable recovery cause ... interval 300`.

## Common causes

- Port security saw more MAC addresses than allowed
- BPDU guard triggered by a switch on an edge port
- Link flap or loopback detected
- Unsupported SFP inserted
- UDLD or DHCP-snooping rate violation

## Quick fix

1. Show the cause: `show interfaces status err-disabled`
2. Fix it, then `shutdown` and `no shutdown` the port
3. Enable errdisable auto-recovery with a sensible interval

## Detailed fix by platform

### Cisco

1. 

```
show interfaces status err-disabled
configure terminal
interface Gi0/5
shutdown
no shutdown
```


## How to diagnose

1. **Cause** — Which feature?
2. **Offending device** — Removed?
3. **Recovery** — Manual or timed?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/networking/switch-port-err-disabled-port-security)
