>>>>> On Wed,  9 Jun 2004 08:39:07 -0700, Glenn MacGregor <[EMAIL PROTECTED]> said:

Glenn> I am writing a subagent for net-snmp-5.1.1. Just getting into
Glenn> handling the getnext request. I am not too sure how to handle
Glenn> this... I have a mib and I get the struct tree for the oid that
Glenn> is asked for, is there a way to get the next oid in the tree
Glenn> from that?

Glenn> Is there some alogrithm that I can implement to simplify this
Glenn> process?

I'm not sure what API mechanism you're working with in the agent, but
it sounds like you might look into one of our "helper" APIs that take
the burden off of you for implement proper GETNEXT ordering.  The
table_iterator has been the most popular helper in these types of
problems if the data is stored somewhere outside the agent (in the
kernel, file, etc).  The array helper has been the most popular if you can
actually keep the data stored within the mib code itself.


-- 
Wes Hardaker
Sparta


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to