|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70382 snmp2_real_walk claims "No response"
Submitted: 2015-08-28 13:50 UTC Modified: 2016-06-19 04:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: php at t-b-o-h dot net Assigned: lytboris (profile)
Status: No Feedback Package: SNMP related
PHP Version: 5.6.12 OS: CentOS 6.3/Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
3 - 2 = ?
Subscribe to this entry?

 [2015-08-28 13:50 UTC] php at t-b-o-h dot net
We are using an F5 BIGIP load balancer, and trying to monitor it. Running the test script results in "PHP Warning:  snmp2_real_walk(): No response from HOSTHERE in /home/tuc/Desktop/snmp2_real_walk.php on line 2" on CentOS and Windows 7, versions 5.3.3 through 5.6.12 . However :

[tuc@monitoring-01.sf ~]$ time snmpwalk -v2c -c PASSWORD  HOST .|wc -l

real	0m0.104s
user	0m0.037s
sys	0m0.006s

In every case I look a tcpdump returns well before the script bombs. 

The data returned (48 lines) includes some really long OIDS... :

SNMPv2-SMI::enterprises.3375. = STRING: "/Common/service1"
SNMPv2-SMI::enterprises.3375. = STRING: "/Common/service2"

Test script:
 print_r(snmp2_real_walk("HOSTHERE:161", "PASSWORDHERE", "."));

Expected result:
48 line array of OIDs and strings such as above

Actual result:
"PHP Warning:  snmp2_real_walk(): No response from HOSTHERE in /home/tuc/Desktop/snmp2_real_walk.php on line 2"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-06 07:12 UTC]
Well, using snmpwalk for a proof of a failure is not a way to go - use snmpbulkwalk for that or tune your SNMP session (yep, use SNMP class) to query less OIDs in single packet. I suspect that remote box can not handle too long packets effectively or your have some network issue at this point resulting in packet loss.
 [2016-06-06 07:48 UTC]
-Status: Open +Status: Feedback
 [2016-06-06 07:48 UTC]
-Assigned To: +Assigned To: lytboris
 [2016-06-06 12:15 UTC] php at t-b-o-h dot net
Can't test/reproduce..... Left the job that was happening at 2 months ago. I'll email them but not sure they'll care anymore.
 [2016-06-19 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 10:01:29 2024 UTC