Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there be any mechanism around through which we can only receive desired traps. I mean to say suppose we only want to receive cold-start/warm start traps not Authorization-failure trap ...Can we restrict our snmptrapd to receive cold-start/warm-start trap??...Even though Authorization-failure traps also raised on the same time by the device.

Thanks in Advance for any suggestion

share|improve this question

migrated from Oct 12 '12 at 14:59

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

Currently there is no filtering mechansim to filter out specific traps from snmptrapd. There actually is an option (ignoreAuthFailure) option for removing authentication failure traps, but that's the only one.

You could define a traphandle, though, and do your own logging within it and have it generate a log with a specific set of traps you're looking for.

share|improve this answer
Thanks Wes....I will see it .........Are u able to give me any idea that how to write traphandler...I mean, ever u come across any tutorial or u have had written it by urself....I want some help regarding traphandler..Please give me any idea??? – Gaurav Oct 9 '12 at 13:22
The traptoemail script is a traphandle that comes with net-snmp. It's in the local directory of the source tree, or may have been installed in /usr/bin on your system. – Wes Hardaker Oct 9 '12 at 17:09
K..........Thanks Wes ...I will look into it – Gaurav Oct 10 '12 at 4:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.