Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Limiting SNMP Traps sent to a specific Host

Hi

I'm trying to limit snmp traps that are sent to a specific host. I'd like to send linkup/linkdown traps only for a specific port, i.e. host 1.1.1.1 only receives linkup/linkdown traps for interface fast 0/1. I cant seem to find any config to do this. Does anybody have any ideas as how to do this?

Thanks in advance

Malcolm

3 REPLIES
Cisco Employee

Re: Limiting SNMP Traps sent to a specific Host

Depending on the device, IOS vs CatOS, you could do it something like this:

snmp-server host 1.1.1.1 traps public snmp

This would send link up/down to that host.

You could then send other trap types to another host:

snmp-server host 1.1.1.2 traps public syslog x.25

Just remember if you do not specify the specific trap type at the end of the host command it will send all trap types that are enabled to that host.

New Member

Re: Limiting SNMP Traps sent to a specific Host

Hi

Would this only send traps relating to a specific port though? I dont want to send traps for port other than 0/1, i.e. I dont want to generate linkup linkdown traps for 0/2 - 0/48.

Thanks

Malcolm

Cisco Employee

Re: Limiting SNMP Traps sent to a specific Host

It would send traps from any port that has link-status traps enabled, sorry I missed the port part.

You would have to add something like no snmp trap link-status to the interfaces that you won't want to generate traps for. The syntax may vary depending on code version.

733
Views
5
Helpful
3
Replies
CreatePlease to create content