On Mon, 2005-04-11 at 17:34, Robert Story wrote:
> On Mon, 11 Apr 2005 15:34:16 +0530 Sridhar wrote:
> SS> I tried out with Net-SNMP version 5.2.1.
> SS>
> SS> With this version using netsnmp_register_scalar_group () and setting
> SS> SNMP_NOSUCHOBJECT error for the var-bind is stopping the SNMP walk at
> SS> the manager.
> I linked in your code to my cvs tree, added a log msg to make sure it was it,
> and had no problems walking past the missing object.
I also had a quick look at this problem last night, and was able
to reproduce it immediately.
It looks as if the underlying cause lies in the handling of "sparse"
values. We've got assorted code in the top-level table_handler to
recognise a "noSuch" response to a GetNext request, and mark this
varbind to be retried. But there's nothing equivalent for the
scalar_group/scalar/instance processing chain.
A simple workaround would be to add something like:
case MODE_GETNEXT:
:
ret = netsnmp_call_next_handler(handler,
reginfo, reqinfo, requests);
reqinfo->mode = MODE_GETNEXT;
+ if ( requests->requestvb->type == ASN_NULL ||
+ requests->requestvb->type == SNMP_NOSUCHINSTANCE ||
+ requests->requestvb->type == SNMP_NOSUCHOBJECT ) {
+ requests->requestvb->type = ASN_PRIV_RETRY;
+ }
return ret;
to the netsnmp_instance_helper_handler routine (in instance.c),
though I'm not sure whether this is a full solution. But it
definitely helps.
Dave
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users