On Wed, 17 Nov 2004 10:52:14 -0500 Gillis, wrote:
GPW> I'm trying to forward PDU's to another master snmp agent after handling
GPW> them in the usual master agent (or before or instead of handling them, all
GPW> under program control).
GPW> 
GPW> I haven't found anything like this in the archives.  Is this really weird?

Yes, that's really weird! Take a look at the proxy code, which does forwarding.

GPW> I've cobbled together code from some of the apps, and it seems to work for
GPW> GET and GETNEXT, but I'm not sure how to handle GETBULK.  Looks like the
GPW> handler gets called once per varbind in a GETBULK response, and
GPW> requests->repeat decrements, while requests->orig_repeat is non-zero and
GPW> constant.

The handlers were never meant to be used this way, so you are in uncharted
territory. It's an interesting problem.

GPW> One problem is that I'm confused as to the meaning of request versus
GPW> reqinfo versus the varbinds in request->requestvb, and when they're valid
GPW> for GETBULK.  Are there any docs on this?


GPW> Sign me up for Robert's upcoming book!

Oooh, I hope Dave was sitting down when he read *that* one!


GPW> Best question: Can anyone point me to existing code that does something
GPW> similar?  

Nope.. they proxy code would be close, but it's not conditional.

-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to