02-26-2021 08:15 AM
Hi All
I am looking at configuring mac notification traps on my switches, however I only want them to go to one of the trap receiver hosts that are set up on the switch and not both.
Is is possible to only send a certain type of traps to one of the hosts and not the other? if so how would I do it?
cheers
Carl
02-26-2021 09:47 AM
as i rememnber i tested some time back : ( appologies if not working)
how about below :
snmp-server enable trap mac-notification
snmp-server host 10.10.10.1 mac-notification
03-01-2021 09:49 AM
Hi there
So what I am trying to achieve is to send mac notifications and link up link down to one server, the other server I want syslogs, and config changes and any errors going to it, I dont want mac notifications and link traps to go to server 1, would the below work?
Also, when using the syslog keyword in the traps, does that rely on the level of logging you have it set to also? i.e
logging trap notifications ?
on each port
no logging event link-status
snmp trap link-status
!
snmp-server community server1 RW 88
snmp-server community server2 RW 89
snmp-server enable traps MAC-Notification
snmp-server host 1.1.1.1 version 2c server1 config storm-control envmon syslog vlancreate vlandelete
snmp-server host 2.2.2.2 version 2c server2 mac-notification snmp
mac address-table notification change
!
access-list 88 permit 1.1.1.1
access-list 89 permit 2.2.2.2!
snmp-server enable traps snmp linkup linkdown
03-01-2021 10:52 AM
if below server you like to send only MAC notification, should work technically as expected if any issue please let us know device model and code it running.
snmp-server host 2.2.2.2 version 2c server2 mac-notification snmp
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide