Management and Configuration Guide K/KA/KB.15.15

When this command is executed without the learned or removed option, it enables or disables the
capture of both learned and removed MAC address table changes for the selected ports in
<port-list>.
Configures MAC address table changes capture on the specified ports. Use all to capture
changes for all ports on the switch.
<port-list>
Enables the capture of learned MAC address table changes on the selected ports.learned
Enables the capture of removed MAC address table changes table on the selected ports.removed
Example of configuring traps on a per-port basis for learned MAC addresses
(HP_Switch_name#) mac-notify traps 5-6 learned
(HP_Switch_name#) show mac-notify traps 5-6
Mac Notify Trap Information
Mac-notify Enabled : Yes
Mac-move Enabled : Yes
Trap-interval : 60
Port MAC Addresses trap learned/removed
------ ----------------------------------
5 Learned
6 Learned
Example of configuring traps on a port-bases for removed MAC addresses
(HP_Switch_name#) mac-notify traps 3-4 removed
HP_Switch(config#) show mac-notify traps
Mac Notify Trap Information
Mac-notify Enabled : Yes
Mac-move Enabled : Yes
Trap-interval : 60
Port MAC Addresses trap learned/removed
------ ----------------------------------
1 None
2 None
3 Removed
4 Removed
Configuring the mac-notify option at the interface context level
You can also execute the mac-notify traps command from the interface context.
Example of the interface context for MAC-notify traps command
(HP_Switch_name#) int 11
HP Switch(int-11)# mac-notify traps learned
Viewing mac-notify traps configuration
Use the show mac-notify traps command to display information about SNMP trap
configuration for MAC Address Table changes.
Syntax
show mac-notify traps <port-list>
Example of information for SNMP trap configuration
Displays SNMP trap information for all ports, or each port in the <port-list>.
(HP_Switch_name#) show mac-notify traps
Mac Notify Trap Information
Mac-notify Enabled : Yes
Mac-move Enabled : Yes
Configuring the mac-notify option at the interface context level 215