clear fc-port-security

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

Syntax Description

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.

Command Default

None

Command Modes

EXEC mode

Command History

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.


Usage Guidelines

The active database is read-only and the clear fc-port-security database command can be used when resolving conflicts.

Examples

This example shows how to clear all existing statistics from the port security database for a specified VSAN:

switch# clear fc-port-security statistics vsan 1
 

This example shows how to clear the learned entries in the active database for a specified interface within a VSAN:

switch# clear fc-port-security database auto-learn interface fc2/1 vsan 1
 

This example shows how to clear the learned entries in the active database up to for the entire VSAN:

switch# clear fc-port-security database auto-learn vsan 1
 

Related Commands

Command
Description
show fc-port-security
Displays the configured port security information.