08-21-2006 07:41 AM
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
08-21-2006 07:52 AM
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.
08-21-2006 08:26 AM
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
08-21-2006 08:29 AM
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.
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: