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 ]}
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.
|
None
EXEC mode
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. |
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.
This example shows how to display the contents of the port security database:
This example shows how to display the output of the active port security database in VSAN 1:
This example shows how to display the active database:
This example shows how to display the wildcard fWWN port security in VSAN 1:
This example shows how to display the configured fWWN port security in VSAN 1:
This example shows how to display the interface port information in VSAN 2:
This example shows how to display the port security statistics:
This example shows how to display the status of the active database and the autolearn configuration:
This example shows how to display the previous 100 violations:
Command
|
Description
|
---|---|
fc-port-security
|
Configures port security parameters.
|