To clear the port security information on the switch, use the clear fc-port-security command.
clear fc-port-security { database auto-learn { interface fc slot / port | san-port-channel port } | session | statistics } vsan vsan-id
|
database
|
Clears the port security active configuration database.
|
|
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 from 1 to 128.
|
|
session
|
Clears the port security CFS configuration session and locks.
|
|
statistics
|
Clears the port security counters.
|
|
vsan
vsan-id
|
Clears entries for a specified VSAN ID. The range is from 1 to 4093.
|
None
EXEC mode
|
Release
|
Modification
|
|
4.0(0)N1(1a)
|
This command was introduced.
|
|
4.2(1)N1(1)
|
The
clear fc-port-security
command was added.
Note On a Cisco Nexus 5000 Series switch that runs a Cisco NX-OS release prior to 4.2(1)N1(1), this command was known as the clear port-security command. |
The active database is read-only and the clear fc-port-security database command can be used when resolving conflicts.
This example shows how to clear all existing statistics from the port security database for a specified VSAN:
This example shows how to clear the learned entries in the active database for a specified interface within a VSAN:
This example shows how to clear the learned entries in the active database up to for the entire VSAN:
|
Command
|
Description
|
|---|---|
|
show fc-port-security
|
Displays the configured port security information.
|