I've used the "pass" statement for pass-through control to handle a custom MIB 
I've written.  This works great.  The problem is that I now want to return a 
large amount of data that has to be collected.  So "pass" will kick off my 
program, the program will parse the large amount of data and then return the 
field in question.  When the next item in my sequence is asked for the entires 
process has to repeat.  I much rather would have a program that is running 
separately that parses the data once and then stores it internally.  When it's 
asked for an OID it would just return the stored data (no collecting and 
parsing needed).
 
I've read the man pages about "pass_persist" but I'm very confused by it.
 
1) Can the program on the pass_persist line already be running or does it have 
to be kicked off by snmpd?
2) If snmpd kicks it off then what happens when the second request comes in?  
If the program is still running does snmpd launch another instance of it or 
does it send the request the program already running?
3) The man page says that pass and pass_persist block until they return.  If 
the point of pass_persist it to have the program continue to run after the 
request is answered how does this work if snmpd is paused waiting for the 
pass_persist program to return?
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.
 
Thank you!
_________________________________________________________________
Make Windows Vista more reliable and secure with Windows Vista Service Pack 1.
http://www.windowsvista.com/SP1?WT.mc_id=hotmailvistasp1banner
-------------------------------------------------------------------------
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