Subject: | FIXED: Error calling get_entries when startindex=0 |
Date: | Mon, 25 Mar 2013 18:00:22 +0100 |
To: | bug-Net-SNMP [...] rt.cpan.org |
From: | Vicente Gavara <vgavara [...] gmail.com> |
Hi all. I'm dealing with a snmp managed device that uses zero based tables (with entries indexed from 0 to 33). If I call get_entries stating the startindex argument to 0 I get this error:
The OBJECT IDENTIFIER value ".1.3.6.1.2.1.75.1.3.1.1.1.22." is expected in dotted decimal notation
Note that there's a dot after the number 22. However the error is not present if we omit startindex or we set it to 1, though in both cases we're not unable to get info from the table index 0.
After testing and being almost ready for submitting a bug, I've set startindex in dotted notation ('0.0') instead of using a decimal value (0) and works!!!. Though I suspect that zero based tables are not SNMP standard compliant I think it would be useful covering this matter and how to solve it in the module documentation.
Thanks for your great job.
PS: I'm using the last module release (6.0.1) and I'm pretty sure that the release 5.04.03 supported zero based tables without the need of setting startindex in dotted notation.