clear mac-locking last-violating-macNEW!

clear mac-locking last-violating-mac ports port_list

Description

Clears the last violating MAC address records from specified ports. MAC locking tracks unauthorized MAC addresses when security violations occur; this command resets those records without rebooting the switch.

Syntax Description

clearClears (resets) a value or counter.
mac-lockingMAC locking port security feature.
last-violating-macClears the last violating mac-address information.
port_listPort list for which to clear violation records (for example, 1-5, 10:2).

Default

N/A.

Usage Guidelines

Use this command after investigating and resolving MAC locking violations to clear the last violating MAC address record. This allows ports to accept traffic again and clears the audit trail of which MAC addresses triggered violations. The violation counter remains accessible via show commands for compliance tracking.

Example

The following example clears the last violating MAC address on ports 1-5:

clear mac-locking last-violating-mac ports 1-5

History

This command was first available in version 34.1.1.

Platform Availability

All platforms with MAC locking support.