php.net |  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
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at t-b-o-h dot net
New email:
PHP Version: OS:

 

 [2015-08-28 13:50 UTC] php at t-b-o-h dot net
Description:
------------
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 .1.3.6.1.4.1.3375.2.2.10.2.3.1.1|wc -l
48

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.2.2.10.2.3.1.1.41.47.67.111.109.109.111.110.47.97.100.101.110.103.105.110.101.45.112.114.111.100.116.101.115.116.95.112.117.98.108.105.99.45.105.112.49.56.49.46.56.48 = STRING: "/Common/service1"
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.1.42.47.67.111.109.109.111.110.47.97.100.101.110.103.105.110.101.45.112.114.111.100.116.101.115.116.95.112.117.98.108.105.99.45.105.112.49.56.49.46.52.52.51 = STRING: "/Common/service2"


Test script:
---------------
<?php
 print_r(snmp2_real_walk("HOSTHERE:161", "PASSWORDHERE", ".1.3.6.1.4.1.3375.2.2.10.2.3.1.1"));
?>

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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-06 07:12 UTC] lytboris@php.net
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] lytboris@php.net
-Status: Open +Status: Feedback
 [2016-06-06 07:48 UTC] lytboris@php.net
-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-2021 The PHP Group
All rights reserved.
Last updated: Tue Jan 19 21:01:24 2021 UTC