Show Port-Security - Cisco WS-C3560E-24PD-E Command Reference Manual

Catalyst 3560 series switch
Table of Contents

Advertisement

Chapter 2 Catalyst 3560 Switch Cisco IOS Commands

show port-security

Use the show port-security privileged EXEC command to display port-security settings for an interface
or for the switch.
Syntax Description
interface interface-id
address
vlan
| begin
| exclude
| include
expression
Command Modes
Privileged EXEC
Command History
Release
12.1(19)EA1
Usage Guidelines
If you enter the command without keywords, the output includes the administrative and operational
status of all secure ports on the switch.
If you enter an interface-id, the command displays port security settings for the interface.
If you enter the address keyword, the 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 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.
If you enter the vlan keyword, the command displays the configured maximum and the current number
of secure MAC addresses for all VLANs on the interface. This option is visible only on interfaces that
have the switchport mode set to trunk.
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.
78-16405-05
show port-security [interface interface-id] [address | vlan] [ | {begin | exclude | include}
expression]
(Optional) Display port security settings for the specified interface. Valid
interfaces include physical ports (including type, module, and port number).
(Optional) Display all secure MAC addresses on all ports or a specified port.
(Optional) Display port security settings for all VLANs on the specified
interface. This keyword is visible only on interfaces that have the switchport
mode set to trunk.
(Optional) Display begins with the line that matches the expression.
(Optional) Display excludes lines that match the expression.
(Optional) Display includes lines that match the specified expression.
Expression in the output to use as a reference point.
Modification
This command was introduced.
Catalyst 3560 Switch Command Reference
show port-security
2-509

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents