2-395
Catalyst 2950 and Catalyst 2955 Switch Command Reference
0L-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
show port-security
show port-security
Use the show port-security privileged EXEC command to display the port security settings defined for
an interface or for the switch.
show port-security [interface interface-id] [address] [ | {begin | exclude | include} expression]
Syntax Description
Command Modes Privileged EXEC
Command History
Usage Guidelines If you enter this command without keywords, the output includes the administrative and the operational
status of all secure ports on the switch.
If you enter an interface-id, the show port-security command displays port security settings for the
interface.
If you enter the address keyword, the show port-security address command displays the secure MAC
addresses for all interfaces and the aging information for each secure address.
If you enter an interface-id and the address keyword, the show port-security interface interface-id
address command displays all the MAC addresses for the interface with aging information for each
secure address. You can also use this command to display all the MAC addresses for an interface even
if you have not enabled port security on it.
Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output
do not appear, but the lines that contain Output appear.
Examples This is an example of output from the show port-security command:
Switch# show port-security
Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security
Action
(Count) (Count) (Count)
----------------------------------------------------------------------------
Fa0/1 11 11 0 Shutdown
Fa0/2 15 5 0 Restrict
interface
interface-id
(Optional) Display the port security settings for the specified interface.
address (Optional) Display all the secure addresses on all ports.
| begin (Optional) Display begins with the line that matches the specified expression.
| exclude (Optional) Display excludes lines that match the specified expression.
| include (Optional) Display includes lines that match the specified expression.
expression Expression in the output to use as a reference point.
Release Modification
12.1(6)EA2 This command was introduced. It replaced the show port security and show
mac-address-table secure commands.