Re: For get-next processing, what should be the error code to be

This is a discussion on Re: For get-next processing, what should be the error code to be within the SNMP Users forums, part of the Networking and Network Related category; On Sun, 2005-05-15 at 13:09, Pamidipati Suresh-G20238 wrote: > For get-next processing, what should be ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-17-2005
Dave Shield
 
Posts: n/a
Default Re: For get-next processing, what should be the error code to be

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/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:28 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0