188
MES1000, MES2000 Ethernet Switches
events occur. If the interval value is greater than 0, the device
will collect MAC address table state change events for the
specified time, send SNMP protocol notifications and save
events to history.
mac address-table
notification change history
{
value
}
[0..500]/1
The command specifies the maximum quantity of MAC
address table state change events, saved to the history. If the
history value equals 0, events will not be saved. In case of
history buffer overrun, the oldest event will be replaced with
the newest one.
[no] snmp-server enable
traps mac
-
notification
change
-/disabled
Command allows to enable or disable the transmission of
SNMP notifications on MAC address table state changes. Use
the negative form of command to disable this function.
If notification transmission is enabled, the device will send
SNMP event messages and save the respective events to the
history. If the transmission of SNMP notifications is disabled,
the device will save events in history only.
Ethernet interface configuration mode commands
Command line request appears as follows:
console(config-if)#
Table 5.224 —Ethernet interface configuration mode commands
Command
Default value
Action
snmp trap mac-notification
change [added | removed]
disabled
Disable generation of notifications on each interface for MAC
address state change events. You can enable generation of
notifications only for MAC address learning or removal.
Privileged EXEC mode commands
Command line request in privileged EXEC mode appears as follows:
console#
Table 5.225 —Privileged EXEC mode commands
Command
Value
Action
show mac address-table
notification change history
[
interfaces
]
-
Show all notifications on MAC address state changes, saved in
history. You can filter events by port, port group (LAG), and
VLAN.
show mac address-table
notification change
statistics
-
Show the service statistics: the total quantity of MAC address
learning events, the total quantity of MAC address removal
events, the total quantity of sent SNMP messages.
Example use of commands
This example shows how to configure the SNMP MAC Notification message transmission to
server with address
172.16.1.5
. During the configuration, general service operation
permission is defined, minimum message transmission interval is selected, event history size is
specified and the service is configured on the selected port.
console(config)#
snmp-server host
172.16.1.5
traps private
console (config)#
snmp-server enable traps mac-notification change
console (config)#
mac address-table notification change
console (config)#
mac address-table notification change interval
60
console (config)#
mac address-table notification change history
100
console (config)#
interface gigabitethernet
0/7
console (config-if)#
snmp trap mac-notification change
console (config-if)#
exit
console (config)#