R2511-HP MSR Router Series Security Command Reference(V5)

156
Port security configuration commands
display port-security
Use display port-security to display port security configuration information, operation information, and
statistics for one or more ports.
Syntax
display port-security [ interface interface-list ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
2: System level
Parameters
interface interface-list: Specifies Ethernet ports by an Ethernet port list in the format of { interface-type
interface-number [ to interface-type interface-number ] }&<1-10>, where &<1-10> means that you can
specify up to 10 ports or port ranges. The starting port and ending port of a port range must be of the
same type, and the ending port number must be greater than the starting port number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If the interface interface-list parameter is not provided, the command displays port security information,
operation information, and status about all ports.
Examples
# Display port security configuration information, operation information, and statistics for all ports.
<Sysname> display port-security
Equipment port-security is enabled
Trap is enabled
AutoLearn aging time is 1 minutes
Disableport Timeout: 20s
OUI value:
Index is 1, OUI value is 000d1a
Index is 2, OUI value is 003c12
GigabitEthernet1/1 is link-down
Port mode is userLoginWithOUI
NeedToKnow mode is NeedToKnowOnly