Re: OID not increasing

slowpoison <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Thu, Feb 18, 2010 at 1:09 AM, Dave Shield <[email protected]> wrote:
>   If your handler isn't checking the column information
> properly, that might well result in the behaviour that you
> are seeing.

I'm not sure why this is a problem. But, I have fixed it by putting
this in the handler code:

if (!entry)
    continue;

My agent code is mib2c generated. I chose net-snmp style tables with
external tables with one based around single handler, just for your
reference.

I think there might be a problem with the mib2c generated code. If I
choose net-snmp style tables with external tables with one based
around single handler (like I mentioned above), the handler code does
check for the entry to be null for each of the column types. But, I
think my switch was ending up in "case default:", where it leads to
this (since the column is set to 0):
                                netsnmp_set_request_error(reqinfo, request,
                                                          SNMP_NOSUCHOBJECT);
                                break;
Somehow after this, the master agent tries again with the first column
and succeeds. This leads to a loop.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.