DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
521
50-5
clear port_security_entry
Description
This command is used to clear the MAC entries learned from the specified port(s) or VLAN(s) for
the port security function.
Format
clear port_security_entry {ports [<portlist> | all] { [vlan <vlan_name 32> | vlanid <vidlist>]}}
Parameters
ports
- (Optional) The port-security entries learned on the specified port will be cleared.
<portlist>
- Specifies a range of ports to be configured.
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>
- Specifies the VLAN name. The maximum length is 32 characters.
vlanid
- (Optional) Specifies a list of VLANs by VLAN ID.
<vidlist>
- Specifies a list of the VLAN IDs.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To clear port security entry for port 6:
DGS-3710-12C:admin#clear port_security_entry port 6
Command: clear port_security_entry port 6
Success.
DGS-3710-12C:admin#
50-6
show port_security_entry
Description
This command is used to display a port security entry.
Format
show port_security_entry {ports [<portlist> | all] {[vlan <vlan_name 32> | vlanid <vidlist>]}}
Parameters
ports
- (Optional) Specifies a range of ports to be displayed.
<portlist>
- Specifies a range of ports to be displayed.
all
- Specifies to display the entries of all ports.
vlan
- (Optional) Specifies a VLAN to display its entry.
<vlan_name 32>
- Specifies the VLAN name. The maximum length is 32 characters.
vlanid
- (Optional) Specifies a VLAN list to display its entry.