334
Related commands
display port-security
port-security intrusion-mode
snmp-agent trap enable port-security
Use
snmp-agent trap enable port-security
to enable SNMP notifications for port security.
Use
undo snmp-agent trap enable port-security
to disable SNMP notifications for port security.
Syntax
snmp-agent trap enable port-security
[
address-learned
|
dot1x-failure
|
dot1x-logoff
|
dot1x-logon
|
intrusion
|
mac-auth-failure
|
mac-auth-logoff
|
mac-auth-logon
] *
undo snmp-agent trap enable port-security
[
address-learned
|
dot1x-failure
|
dot1x-logoff
|
dot1x-logon
|
intrusion
|
mac-auth-failure
|
mac-auth-logoff
|
mac-auth-logon
] *
Default
All port security SNMP notifications are disabled.
Views
System view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
address-learned
: Specifies notifications about MAC address learning.
dot1x-failure
: Specifies notifications about 802.1X authentication failures.
dot1x-logoff
: Specifies notifications about 802.1X user logoffs.
dot1x-logon
: Specifies notifications about 802.1X authentication successes.
intrusion
: Specifies notifications about illegal frame detection.
mac-auth-failure
: Specifies notifications about MAC authentication failures.
mac-auth-logoff
: Specifies notifications about MAC authentication user logoffs.
mac-auth-logon
: Specifies notifications about MAC authentication successes.
Usage guidelines
To report critical port security events to an NMS, enable SNMP notifications for port security. For port
security event notifications to be sent correctly, you must also configure SNMP on the device. For
more information about SNMP configuration, see
Network Management and Monitoring
Configuration Guide
.
If you do not specify a notification, this command enables all SNMP notifications for port security.
For this command to take effect, make sure the intrusion protection feature is configured.
Examples
# Enable SNMP notifications about MAC address learning.
<Sysname> system-view
[Sysname] snmp-agent trap enable port-security address-learned