Re: Trap handling
Thomas Anders <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dave Shield wrote: > On Thu, 2005-11-10 at 10:33 +0530, [email protected] wrote: > >>We have a requirement to support trap handling in our project. >>Requirement is whenever a trap is received a function should be called >>which extracts the community string and performs some operation. > > Unfortunately, snmptrapd.conf won't help you here. > That can be used to configure various "standard" trap > handler routines, but not to add new ones. If you > need to add this extra functionality, you're going > to have to start tweaking the snmptrapd code itself. Not necessarily. If your installation has been configured with --enable-embedded-perl (check "net-snmp-config --configure-options" if you're unsure), you can register your own *Perl* function via snmptrapd.conf: perl NetSNMP::TrapReceiver::register("trapOID", \&myfunc); Check the NetSNMP::TrapReceiver(3pm) manual page for details. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ 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