Bug#584421: libnet-snmp-perl: Get_entries : not all the results given

Roland Rosenfeld roland at debian.org
Fri Dec 8 12:51:39 UTC 2017


Hi Dominique!

On Do, 03 Jun 2010, Dominique Fournier wrote:

> Package: libnet-snmp-perl
> Version: 5.2.0-1
> Severity: important
> 
> Hi 
> I have a problem with get_entries when I provide more than one column : some 
> results are not given to the table.
> If I try :
>    $table = $session->get_entries(-columns => ['1.3.6.1.2.1.31.1.1.1.6']);
>    while ( my ($key, $value) = each(%{$table}) ) {
>         print "$key => $value\n";
> I have 32 responses on my router
> If I try :
>    $table = $session->get_entries(-columns => ['1.3.6.1.2.1.31.1.1.1.6','1.3.6.1.2.1.31.1.1.1.18']);
> with a grep 1.3.6.1.2.1.31.1.1.1.6, I have only 14 entries (but all the 1.3.6.1.2.1.31.1.1.1.18 results).
> 
> I should add that I test it with -version => 2, if it change something.

Could you please re-check whether this issue still exists with current
6.0.1 version of the package?  As Niko Tyni wrote, this should be
already fixed upstream:

On Mo, 23 Mai 2011, Niko Tyni wrote:

> I'm seeing this too. A workaround is to use 'maxrepetitions => 1' which
> forces the library to use get-next-requests instead of get-bulk-requests.
> 
> I suspect it's fixed upstream: 
> 
> http://cpansearch.perl.org/src/DTOWN/Net-SNMP-v6.0.1/Changes :
> 
>   RELEASE 6.0.0 SEP-09-2009
> 
>   - The get_table() and get_entries() methods were refactored as part
>   of the code cleanup.  The get_entries() method now handles "holes"
>   in tables better and indexes with a value of zero.

So I hope that this is already fixed...

Greetings
Roland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20171208/fb79ba39/attachment.sig>


More information about the pkg-perl-maintainers mailing list