xStack
®
DGS-3120 Series Managed Switch CLI Reference Guide
546
Format
clear port_security_entry {ports [<portlist> | all] {[vlan <vlan_name 32> | vlanid <vidlist>]}}
Parameters
ports
- (Optional) Specify the range of ports to be configured.
<portlist>
- The port security entries learned on the specified port will be cleared.
all
- All the port security entries learned by the system will be cleared.
vlan
- (Optional) The port security entries learned on the specified VLANs will be cleared.
<vlan_name 32>
- Enter the VLAN name here. This name can be up to 32 characters long.
vlanid
- (Optional) Specify a list of VLANs by VLAN ID.
<vidlist>
- Enter the VLAN ID list here.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To clear the port security entries on port 6:
DGS-3120-24TC:admin# clear port_security_entry ports 6
Command: clear port_security_entry ports 6
Success.
DGS-3120-24TC:admin#
56-6
show port_security_entry
Description
This command is used to display the port security entries.
If more than one parameter is selected, only the entries matching all the selected parameters will
be displayed.
If the user specifies ports and VLAN (either the VLAN name or VLAN ID list), only the entries
matching all the parameters will be displayed.
Format
show port_security_entry {ports {<portlist>} {[vlan <vlan_name 32> | vlanid <vidlist>]}}
Parameters
ports
- (Optional) Specify the range of ports that will display the port security entries. While this
parameter is null, to show the entries on all of the ports.
<portlist>
- Enter the list of port used for this configuration here.
vlan
- (Optional) Specify the name of the VLAN that the port security settings will be displayed
for.
<vlan_name 32>
- Enter the VLAN name here. This name can be up to 32 characters long.
vlanid
- (Optional) Specify the ID of the VLAN that the port security entries will be displayed for.
<vidlist>
- Enter the VLAN ID list here.