Enabling SNMP notifications for port security


[IMPORTANT: ]

IMPORTANT:

This feature is available in Release 1121 and later.


Use this feature to report critical port security events to an NMS. For port security event notifications to be sent correctly, you must also configure SNMP on the device. For more information about SNMP configuration, see the network management and monitoring configuration guide for the device.

For this feature to take effect, make sure the intrusion protection feature is configured.

To enable SNMP notifications for port security:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable SNMP notifications for port security.

snmp-agent trap enable port-security [ address-learned | dot1x-failure | dot1x-logoff | dot1x-logon | intrusion | mac-auth-failure | mac-auth-logoff | mac-auth-logon ] *

By default, SNMP notifications are disabled for port security.