Display Port-Security Mac-Address Security - HPE FlexNetwork HSR6800 Security Command Reference

Hide thumbs Also See for FlexNetwork HSR6800:
Table of Contents

Advertisement

Related commands
port-security intrusion-mode

display port-security mac-address security

Use display port-security mac-address security to display information about secure MAC
addresses. Secure MAC addresses are those that are automatically learned by the port in autoLearn
mode or configured by the port-security mac-address security command.
Syntax
display port-security mac-address security [ interface interface-type interface-number ] [ vlan
vlan-id ] [ count ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
2: System level
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
vlan vlan-id: Specifies a VLAN by its ID in the range of 1 to 4094.
count: Displays only the count of the secure MAC addresses.
|: 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
With no keyword or argument specified, the command displays information about all secure MAC
addresses.
Examples
# Display information about all secure MAC addresses.
<Sysname> display port-security mac-address security
MAC ADDR
0002-0002-0002
000d-88f8-0577
---
2 mac address(es) found
# Display only the count of the secure MAC addresses.
<Sysname> display port-security mac-address security count
This operation may take a few minutes, please wait......
---
2 mac address(es) found
# Display information about secure MAC addresses in VLAN 1.
<Sysname> display port-security mac-address security vlan 1
MAC ADDR
VLAN ID
STATE
1
Security
1
Security
---
---
VLAN ID
STATE
PORT INDEX
GigabitEthernet3/0/1
GigabitEthernet3/0/1
PORT INDEX
176
AGING TIME
NOAGED
NOAGED
AGING TIME

Advertisement

Table of Contents
loading

Table of Contents