show fc-port-security

To display configured port security feature information, use the show fc-port-security command.

show fc-port-security { database [ active [ vsan vsan-id ]] | fwwn fwwn-id vsan vsan-id | interface { fc slot / port | san-port-channel port } vsan vsan-id | vsan vsan-id | pending [ vsan vsan-id ] | pending-diff [ vsan vsan-id ] | session status [ vsan vsan-id ] | statistics [ vsan vsan-id ] | status [ vsan vsan-id ] | violations [ last count | vsan vsan-id ]}

Syntax Description

database
Displays database-related port security information.
active
(Optional) Displays the activated database information.
vsan vsan-id
(Optional) Displays information for the specified database.
fwwn fwwn-id
Displays information for the specified fabric WWN.
interface
Displays information for an interface.
fc slot / port
Displays information for the specified Fibre Channel interface.
san-port-channel port
Displays information for the specified SAN port channel interface. The range is from 1 to 128.
pending
Displays the server address pending configuration.
pending-diff
Displays the server address pending configuration differences with the active configuration.
session status
Displays the port security session status on a per VSAN basis.
statistics
Displays port security statistics.
status
Displays the port security status on a per VSAN basis.
violations
Displays violations in the port security database.
last count
(Optional) Displays the last number of lines in the database. The range is from 1 to 100.

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 show 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 show port-security command.


Usage Guidelines

The access information for each port can be individually displayed. If you specify the fabric world wide name (fWWN) or interface options, all devices that are paired in the active database (at that point) with the given fWWN or the interface are displayed.

When you enter the show fc-port-security command with the last number option, only the specified number of entries that appear first are displayed.

Examples

This example shows how to display the contents of the port security database:

switch# show fc-port-security database
 

This example shows how to display the output of the active port security database in VSAN 1:

switch# show fc-port-security database vsan 1
 

This example shows how to display the active database:

switch# show fc-port-security database active
 

This example shows how to display the wildcard fWWN port security in VSAN 1:

switch# show fc-port-security database fwwn 20:85:00:44:22:00:4a:9e vsan 1
 

This example shows how to display the configured fWWN port security in VSAN 1:

switch# show fc-port-security database fwwn 20:01:00:05:30:00:95:de vsan 1
 

This example shows how to display the interface port information in VSAN 2:

switch# show fc-port-security database interface fc 2/1 vsan 2
 

This example shows how to display the port security statistics:

switch# show fc-port-security statistics
 

This example shows how to display the status of the active database and the autolearn configuration:

switch# show fc-port-security status
 

This example shows how to display the previous 100 violations:

switch# show fc-port-security violations
 

Related Commands

Command
Description
fc-port-security
Configures port security parameters.