show port-security
To show the state of port security on the device, use the show port-security command.
show port-security [state]
Syntax Description
(Optional) Shows that port security is enabled.state
Command Default
None
Command Modes
Any command mode
Command History
ModificationRelease
Support for Layer 2 port-channel interfaces was added.4.2(1)
This command was introduced.4.0(1)
Usage Guidelines
This command does not require a license.
Examples
This example shows how to use the show port-security command to view the status of the port security
feature on a device:
switch# show port-security
Total Secured Mac Addresses in System (excluding one mac per port) : 0
Max Addresses limit in System (excluding one mac per port) : 8192
----------------------------------------------------------------------------
Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action
(Count) (Count) (Count)
----------------------------------------------------------------------------
Ethernet1/4 5 1 0 Shutdown
============================================================================
switch#
Related Commands
DescriptionCommand
Enables the port security feature.feature port-security
Shows MAC addresses secured by the port security
feature.
show port-security address
Shows the port security status for a specific interface.show port-security interface
Cisco Nexus 7000 Series Security Command Reference
851
Show Commands
show port-security