cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
775
Views
10
Helpful
3
Replies

SNMP traps to specific locations

carl_townshend
Spotlight
Spotlight

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

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

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

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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

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

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card