Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
8-21
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 8 Fibre Channel Commands
clear port-security
clear port-security
To clear the port security information on the switch, use the clear port-security command.
clear port-security {database auto-learn {interface fc slot/port | san-port-channel port} |
session | statistics} vsan vsan-id
Syntax Description
Command Default None
Command Modes EXEC mode
Command History
Usage Guidelines The active database is read-only and the clear port-security database command can be used when
resolving conflicts.
Examples The following example clears all existing statistics from the port security database for a specified VSAN:
switch# clear port-security statistics vsan 1
The following example clears learned entries in the active database for a specified interface within a
VSAN:
switch# clear port-security database auto-learn interface fc2/1 vsan 1
The following example clears learned entries in the active database up to for the entire VSAN:
switch# clear port-security database auto-learn vsan 1
Related Commands
database Clears the port security active configuration database.
session Clears the port security CFS configuration session and locks.
statistics Clears the port security counters.
auto-learn Clears the automatically learned entries for a specified interface or VSAN.
interface fc slot/port Clears entries for the specified Fibre Channel interface.
san-port-channel port Clears entries for a specified SAN port channel. The range is 1 to 128.
vsan vsan-id Clears entries for a specified VSAN ID. The range is 1 to 4093.
Release Modification
4.0(0)N1(1a) This command was introduced.
Command Description
show port-security Displays the configured port security information.