Re: SNMP Trap API required

2005-05-18 Thread Hugo Caçote
Hi, look at the CVS in: http://cvs.sourceforge.net/viewcvs.py/net-snmp/net-snmp/perl/TrapReceiver/ and for the example look at the man page of TrapReceiver (after installing net-snnp configured with embedded_perl support ): man 3 NetSNMP::TrapReceiver Hope this helps Hugo CaÃote mobby lin wro

Re: SNMP Trap API required

2005-05-18 Thread mobby lin
Would you point me which example files I can refer, and how to compiler/use it? thanks,.   How to use handler perl module in C program or perl program?   Thanks.   MobbyHugo Ca蔞te <[EMAIL PROTECTED]> wrote: Hi,Why don't try to use the TrapReceiver perl module?? If you compile the net-snmp package w

Re: SNMP Trap API required

2005-05-17 Thread Hugo Caçote
Hi, Why don't try to use the TrapReceiver perl module?? If you compile the net-snmp package with embedded perl support snmptrapd will execute a perl handler that will process the SNMP trap received. There is an example of the perl trap handler in the net-snmp distribution. Hopoe this helps, H

SNMP Trap API required

2005-05-17 Thread mobby lin
I need to used snmp-trap function to receive some trap/information messages, then run a external command to process the messages.   I try to understand the source file of snmptrapd in the net-snmp 5.2.1. To me, this is a little complex to understand the whole coding. Specially I trace the snmptrapd