On Sun, 2005-05-15 at 13:09, Pamidipati Suresh-G20238 wrote: > For get-next processing, what should be the error code to be returned > to the net-snmp library if there is no-next instance for the given > OID..?
It doesn't matter. The MIB handler can explicitly return a noSuchInstance or noSuchObject exception, or simply return without setting a value at all. The main agent driving code will recognise this, and move on to the next registered MIB region. > 1. Can this cause calling table handlers in a loop or in > non-lexicographical order..? No - it shouldn't do. The main agent driving code will move on to the next MIB region. > 2. If SNMP_NOSUCHINSTANCE/SNMP_NOSUCHOBJECT can't be returned to > Net-Snmp library, what is the appropriate error code in such a case..? see above > 3. We are assuming that SNMP_NOSUCHINSTANCE/SNMP_NOSUCHOBJECT > error-codes from the subagents, will be converted to SNMP_ERR_GENERR / > END_OF_MIB_VIEW by the master agent before responding to manager for a > GET-NEXT request. Correct. The agent will move on to the next registered region. If there isn't one, then it will respond with endOfMibView. Dave ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users