>>>>> On Sat, 21 Feb 2009 21:53:23 +0530, Chetan Mahadev 
>>>>> <[email protected]> said:

CM> 1.Are there any filtering methods in snmptrapd.conf, where I can
CM> configure/specify , so that the traps are not forwarded from list of
CM> devices.

Not at this time no,

CM> 2.If answer to 1 above is NO  , how can I implement the same in snmptrapd
CM> C code, Specifically , where and what are the changes I may  be required to
CM> do.?

The snmptrapd program is fairly modular.  You'd need to copy the
existing forward code and simply add some filtering behavior for it.  If
you do so, please consider contributing it back to us so others can make
use of it too!

Start by looking at the parse_forward function in snmptrapd_handlers.c,
which is what is reading in the config file information.

CM> 3. Any alternative you would suggest, other than 2 ablove.

The other option is to use something within perl instead of C by using
the NetSNMP::TrapReceiver module.  C would probably be better if you
understand it though.
-- 
Wes Hardaker
Sparta, Inc.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to