The run show port-security interface command displays the detailed port security configuration and statistical information based on secure ports.


Command Syntax

run show port-securityinterface [gigabit-ethernet <interface-name>]


Parameter

Parameter

Description

gigabit-ethernet <interface-name>

Optional. Specifies a secure interface name. The value is a string.

  •   If no interface name is specified, the detailed port security configuration and statistical information of all the secure ports are displayed.
  •   If an interface name is specified, only the detailed port security configuration and statistical information of the specific secure port are displayed.


Example

admin@Xorplus# run show port-security interface 
Interface ge-1/1/22
----------------------------------------
Port Security               : enabled
Violation action            : restrict
Block type                  : N/A
Sticky                      : true
Maximum MAC limit           : 2
Total MAC addresses         : 0
Configured MAC addresses    : 0
Sticky MAC addresses        : 0
Security violation count    : 0

Interface ge-1/1/23
----------------------------------------
Port Security               : enabled
Violation action            : shutdown-temp
Block type                  : N/A
Sticky                      : true
Maximum MAC limit           : 1
Total MAC addresses         : 0
Configured MAC addresses    : 0
Sticky MAC addresses        : 0
Security violation count    : 0

Interface ge-1/1/34
----------------------------------------
Port Security               : enabled
Violation action            : protect
Block type                  : N/A
Sticky                      : false
Maximum MAC limit           : 1
Total MAC addresses         : 0
Configured MAC addresses    : 0
Sticky MAC addresses        : 0
Security violation count    : 0
admin@Xorplus# run show port-security interface gigabit-ethernet ge-1/1/22
Interface ge-1/1/22
----------------------------------------
Port Security               : enabled
Violation action            : restrict
Block type                  : N/A
Sticky                      : true
Maximum MAC limit           : 2
Total MAC addresses         : 0
Configured MAC addresses    : 0
Sticky MAC addresses        : 0
Security violation count    : 0