Chapter 8
Fibre Channel Commands
S e n d c o m m e n t s t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
clear port-security
To clear the port security information on the switch, use the clear port-security command.
Syntax Description
database
session
statistics
auto-learn
interface fc slot/port
san-port-channel port
vsan vsan-id
Command Default
None
Command Modes
EXEC mode
Command History
Release
4.0(0)N1(1a)
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
Command
show port-security
OL-16599-01
clear port-security {database auto-learn {interface fc slot/port | san-port-channel port} |
session | statistics} vsan vsan-id
Clears the port security active configuration database.
Clears the port security CFS configuration session and locks.
Clears the port security counters.
Clears the automatically learned entries for a specified interface or VSAN.
Clears entries for the specified Fibre Channel interface.
Clears entries for a specified SAN port channel. The range is 1 to 128.
Clears entries for a specified VSAN ID. The range is 1 to 4093.
Modification
This command was introduced.
Description
Displays the configured port security information.
Cisco Nexus 5000 Series Command Reference
clear port-security
8-21