snmp-server mac-notify

Syntax

[no] snmp-server enable traps mac-notify [mac-move | trap-interval <0- 120>]

Description

Globally enables or disables generation of SNMP trap notifications.

Parameters

trap-interval

The time interval (in seconds) that trap notifications are sent. A value of zero disables the interval and traps are sent as events occur. If the switch is busy, notifications can be sent prior to the configured interval. Notifications may be dropped in extreme instances and a system warning is logged.The range is 0-120 seconds. Default: 30 seconds.

mac-move

Configures the switch to capture data for MAC addresses that are moved from one port to another port. The snmp-server enable traps mac-notify command must have been enabled in order for this information to be sent as an SNMP notification.

trap-interval

switch(config)# snmp-server enable traps mac-notify trap-interval 60

mac-move

switch(config)# snmp-server enable traps mac-notify mac-move

mac-notify at the interface context level

You can also execute the mac-notify traps command from the interface context.

switch# int 11
switch(int-11)# mac-notify traps learned