|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45095 snmpwalk() doesn't return all the values
Submitted: 2008-05-26 17:44 UTC Modified: 2008-11-29 01:00 UTC
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: pukkers at hotmail dot com Assigned:
Status: No Feedback Package: SNMP related
PHP Version: 5.2.6 OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-05-26 17:44 UTC] pukkers at hotmail dot com
I've found that snmprealwalk, snwmp2_real_walk, snmpwalkoid are not returning the entire oid list from the mib.
They miss out many oid. On my test machine it doesn't go further than the OID .
A test with a python snmwalk would give out oid to number .
There are approx 100 oids that are left out...

I don't know why tough...

Reproduce code:
You will need a snmp client. This is a local test.

$res = snmprealwalk('localhost', 'public', null);

while (list($oid, $data) = each($res)) echo "$oid: $data <br>";

Expected result:
A huge list of oids...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-22 15:04 UTC] nept_uno at hotmail dot com
I have the same problem on HP UX 11.11 with PHP 5.2.0 and net-snmp 5.4. I don't know if in the net-snmp newest release this problem is resolved.
 [2008-11-21 16:36 UTC]
Can you reproduce this using the net-snmp command line tools?
 [2008-11-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 19:01:29 2024 UTC