![D-Link xStack DES-3500 Series Cli Manual Download Page 32](http://html1.mh-extra.com/html/d-link/xstack-des-3500-series/xstack-des-3500-series_cli-manual_4096221032.webp)
DES-3500 Layer 2 Fast Ethernet Switch CLI Reference Manual
29
clear port_security_entry
Purpose
Used to clear MAC address entries learned from a specified port for
the port security function.
Syntax
clear port_security_entry ports <portlist>
Description
This command is used to clear MAC address entries which were
learned by the Switch by a specified port. This command only relates
to the port security function.
Parameters
<portlist>
−
Specifies a port or port range to clear.
Restrictions
Only Administrator and Operator-level users can issue this
command.
Example usage:
To clear a port security entry by port:
DES-3500:admin# clear port_security_entry port 6
Command: clear port_security_entry port 6
Success.
DES-3500:admin#
show port_security
Purpose
Used to display the current port security configuration.
Syntax
show port_security {ports <portlist>}
Description
This command is used to display port security information of the
Switch’s ports. The information displayed includes port security,
admin state, maximum number of learning address and lock mode.
Parameters
<portlist>
−
Specifies a port or range of ports to be viewed.
Restrictions
None.
Example usage:
To display the port security configuration:
DES-3500:admin#show port_security ports 1-5
Command: show port_security ports 1-5
Port_security Trap/Log : Disabled
Port Admin State Max. Learning Addr. Lock Address Mode
---- ----------- ------------------- -----------------
1 Disabled 1 DeleteOnReset
2 Disabled 1 DeleteOnReset
3 Disabled 1 DeleteOnReset
4 Disabled 1 DeleteOnReset
5 Disabled 1 DeleteOnReset
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh