cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3045
Views
0
Helpful
5
Replies

snmp traps on mac movement :: not working

Farhan Jaffer
Level 1
Level 1

Hi,

I entered the command

snmp-server enable traps mac-notification move

on my OSR routers, but the router is not sending traps to SNMP server. Though i can see the logs of mac movement in router's log.

Any idea.

Thanks.

5 Replies 5

Martin Ermel
VIP Alumni
VIP Alumni

you also need to enter this global configuration command:

mac address-table notification mac-move

and be aware that notifications are only send when MAC movement occures in the same vlan:

... enable traps whenever a MAC address is moved from one port to another in the same VLAN ...

from:

https://www.cisco.com/en/US/docs/switches/lan/catalyst3750e_3560e/software/release/12.2_52_se/command/reference/cli1.html#wp2002989

Yes...the global command is there...i forgot to mention.

Well, the logs are observed on router in case of movement of mac addresses on any vlan, but are not sending to NMS.

How can we enable the traps in different vlan in case if this is the limitation.

Thanks

Sorry, but to mention every possible cause, you need also this command in your global config:

snmp-server host x.x.x.x mac-notification

with x.x.x.x being the IP of your NMS server

and being the community that should be send with the trap

If you have this command in your config, please post the output of

show mac address-table notification mac-move

to track every MAC change activity on the switch you can enable the mac-notification change traps instead. These are the necessary commands:

Global commands:

----------------

mac address-table notification change

mac address-table notification change interval 15

snmp-server host x.x.x.x mac-notification

snmp-server enable traps mac-notification change

("interval 15" means sending the traps in a bulk every 15 sec - this is a valid option for mac-move as well)

Per-interface commands (for each interface you want to track the changes)

------------------

snmp trap mac-notification change added

snmp trap mac-notification change removed

Hi mermel,

snmp-server host x.x.x.x

is in global config, then what is the purpose of sub-command with mac-notification?

Further, there is no command with 'change' support in IOS but move which is in place. Also there is not per-interface command of snmp trap for mac-notification, & it is in global config.

Output of 'show mac address-table notification mac-move' is:

MAC Move Notification: enabled

I think all config is there in the router, and the logs of mac movement are appearing in router logs, but are not sending to NMS.

Awaiting your valuable feedback.

Thanks.

can you please post a "show version" of your device?

How do you determine that the traps are not sent?

What do you have as a trap receiver?

Can you enable "debug snmp packets", force a mac-move and see if the device is sending the trap.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: