xStack® DES-3528/DES-3552 Series Layer 2 Managed Stackable Fast Ethernet Switch CLI Reference Guide
37
show port_security
Purpose
Used to display the current port security configuration.
Syntax
show port_security {ports [<portlist> | all] {[vlan <vlan_name 32> | vlanid <vidlist>]}}
Description
This command is used to display port security information of the Switch’s ports. The
information displayed includes port security trap/log state, admin state, maximum number of
learning address and lock mode.
Parameters
ports
−
Specifies a port or range of ports to be viewed.
vlan –
Specifies the VLAN name used.
vlanid
– Specifies the VLAN ID used.
Restrictions
None.
Example usage:
To display the port security configuration:
DES-3528:admin#show port_security
Command: show port_security
Port Security Trap/Log : Enabled
System Maximum Address : no_limit
VLAN Configuration (Only VLANs with limitation are displayed):
VID VLAN Name Max. Learning Addr.
---- -------------------------------- ------------------
1 default 2
DES-3528:admin#
enable port_security trap_log
Purpose
Used to enable the trap log for port security.
Syntax
enable port_security trap_log
Description
This command, along with the
disable port_security trap_log,
will enable and disable the
sending of log messages to the Switch’s log and SNMP agent when the port security of the
Switch has been triggered.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To enable the port security trap log setting:
DES-3528:admin# enable port_security trap_log
Command: enable port_security trap_log
Success.
DES-3528:admin#