Thanks for the response Dave.  
 
My problem was that I was not doing an fflush after I wrote the "PONG" to snmpd 
in my C program.  I didn't experience a problem when I was using "pass" because 
when my program exited it automatically flushed the buffers.
 
I do have one more question.  I noticed that my pass_persist program is not 
launched until it is actually needed (to answer a request).  After that it 
keeps running.  If it is killed snmpd will relaunch it (which is good).  Is 
there any way to make snmpd launch my pass_persist program when snmpd is 
launched (to get the heavy lifting out of the way)?
 
I am running snmpd 5.2.4.
 
Thank you.
> > 3) The example in the package uses a Perl script. I only have a 
> > rudimentary> > knowledge of Perl. I will need to write C program for what I 
> > want to do.> > From what I can tell the Perl script loops until there is 
> > nothing else left> > to be read on standard input. I tried to mimc the Perl 
> > script's logic in a> > C program but I get no response when I try a getnext 
> > to my custom MIB.> > > Read the snmpd.conf(5) man page for a description of 
> > what the pass (persist)> program must do to accept the request.
_________________________________________________________________
Give to a good cause with every e-mail. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?souce=EML_WL_ GoodCause
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to