php : snmpwalk don't provide last entry

Bug #403013 reported by Dominique Fournier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: php5-snmp

Snmpwalk don't provide the last entry :
<?php
var_dump (snmpget ("1.1.1.4", "public@2", ".1.3.6.1.2.1.17.4.3.1.2.0.48.72.152.38.213"));
var_dump (snmpwalk ("1.1.1.4", "public@2", ".1.3.6.1.2.1.17.4.3.1.2.0.48.72.152.38.213"));
var_dump (snmprealwalk ("1.1.1.4", "public@2", ".1.3.6.1.2.1.17.4.3.1.2.0.48.72.152.38.213"));
?>
The result is :
string(11) "INTEGER: 68"
array(0) {
}
array(0) {
}
I have an answer on this OID : snmpwalk should give me 68 in the array, not empty, like snmpget do !
With system snmpwalk, it works well.

Description: Ubuntu 9.04
Release: 9.04
php5-snmp:
  Installed: 5.2.6.dfsg.1-3ubuntu4.1
  Candidate: 5.2.6.dfsg.1-3ubuntu4.1
  Version table:
 *** 5.2.6.dfsg.1-3ubuntu4.1 0
        500 http://fr.archive.ubuntu.com jaunty-updates/main Packages
        500 http://security.ubuntu.com jaunty-security/main Packages
        100 /var/lib/dpkg/status
     5.2.6.dfsg.1-3ubuntu4 0
        500 http://fr.archive.ubuntu.com jaunty/main Packages

Revision history for this message
Chuck Short (zulcss) wrote :

Can you give the expected result as well?

Thanks
chuck

Changed in php5 (Ubuntu):
status: New → Incomplete
Revision history for this message
Dominique Fournier (dominique-fournier) wrote : Re: [Bug 403013] Re: php : snmpwalk don't provide last entry

The answer should be an array with one text entry "INTEGER: 68", like in
snmpget, not an empty array.

You can test with an easier OID 1.3.6.1.2.1.2.2.1.8.3 (it is the state
of interface #3). In this case, the answer should be an array with one
string entry
["IF-MIB::ifOperStatus.3"]=>
   string(14) "INTEGER: up(1)"
like you can see it if you test snmpwalk with 1.3.6.1.2.1.2.2.1.8

Thanks to look at that !

Dom

Revision history for this message
Chuck Short (zulcss) wrote :

Is there anything in dmesg when this is happening. Maybe net-snmp segfaulting?

Regards
chuck

Revision history for this message
Dominique Fournier (dominique-fournier) wrote :

Chuck Short wrote:
> Is there anything in dmesg when this is happening. Maybe net-snmp
> segfaulting?

No log. Nothing wrong.

Do you have the same problem ?

Revision history for this message
Chuck Short (zulcss) wrote :

No Im just trying to get more information so we can track this down.

Thanks
chuck

Changed in php5 (Ubuntu):
importance: Undecided → Low
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.