On 11/02/2008, Larry Dickson <[EMAIL PROTECTED]> wrote:
> Also, 2nd question - What should be our subagent's response to a "getnext"
> on the last leaf in our subtree?

The subagent should return an "endOfMibView" value for this varbind
(RFC 2741, section 7.2.3.2 (2))

But if you're using the Net-SNMP toolkit for your subagent, then the
main (sub)agent will handle this automatically.  Each MIB module
can simply return without setting a value, when it receives an OID
that comes too late.
  The main (sub)agent driving code will recognise this, and act accordingly
(move on to the next MIB module, or return "endOfMibView").
And yes, that does sound suspiciously similar to the behaviour of
the master agent  :-)

Dave

-------------------------------------------------------------------------
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