×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Limiting SNMP Traps sent to a specific Host

Unanswered Question
Aug 21st, 2006
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
David Stanford Mon, 08/21/2006 - 07:52
User Badges:
  • Cisco Employee,

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.

malcolmsalmons Mon, 08/21/2006 - 08:26
User Badges:

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

David Stanford Mon, 08/21/2006 - 08:29
User Badges:
  • Cisco Employee,

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.

Actions

This Discussion