Send documentation comments to mdsfeedback-doc@cisco.com
4-62
Cisco MDS 9000 Family Command Reference
OL-8413-07, Cisco MDS SAN-OS Release 3.x
Chapter 4 C Commands
clear port-security
clear port-security
To clear the port security information on the switch, use the clear port-security command in EXEC
mode.
clear port-security {database auto-learn {interface fc slot/port | port-channel port} | session |
statistics} vsan vsan-id
Syntax Description
Defaults None.
Command Modes EXEC mode.
Command History
Usage Guidelines The active database is read-only and 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 learnt entries in the active database for a specified interface within a
VSAN.
switch# clear port-security database auto-learn interface fc1/1 vsan 1
The following example clears learnt entries in the active database up to for the entire VSAN.
switch# clear port-security database auto-learn vsan 1
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 auto-learnt entries for a specified interface or VSAN.
interface fc slot/port Clears entries for a specified interface.
port-channel port Clears entries for a specified PortChannel. The range is 1 to 128.
vsan vsan-id Clears entries for a specified VSAN ID. The range is 1 to 4093.
Release Modification
1.2(1) This command was introduced.
2.0(x) Added the session option.