clear port security

Clears port security data.
Syntax
clear port security { restricted-macs | statistics } { all | ethernet stack/slot/port }
Parameters
restricted-macs
Clears all restricted MAC addresses globally.
statistics
Clears violation statistics globally.
all
Clears information for all ports.
ethernet stack/slot/port
Clears information for the specified Ethernet port.
Modes

Privileged EXEC mode

Examples

The following example clears all restricted MAC addresses globally.

device# clear port security restricted-macs all

The following example clears restricted MAC addresses on a specific port.

device# clear port security restricted-macs ethernet 1/1/1

The following example clears violation statistics globally.

device# clear port security statistics all

The following example clears violation statistics on a specific port.

device# clear port security statistics ethernet 1/1/1