ID:               38516
 User updated by:  larryjadams at comcast dot net
 Reported By:      larryjadams at comcast dot net
 Status:           Open
 Bug Type:         SNMP related
 Operating System: Win32
 PHP Version:      5.1.5
 New Comment:

You are right, daddy needs a new pair of glasses.  However, if you set
the OID string to "", it still fails, while, if you run the following
command from the command line it will still work:

snmpgetnext -c public -v 1 localhost

The php_snmp requires the OID to be something other than a blank
string.


Previous Comments:
------------------------------------------------------------------------

[2006-08-23 12:27:42] metaur at telia dot com

Wrong community string? (One of your examples say "public" and the
other says "pubilc".)

// Ulf Härnhammar

------------------------------------------------------------------------

[2006-08-20 03:08:20] larryjadams at comcast dot net

Description:
------------
The snmpgetnext function does not work in the PHP distributions.  This
has been an issue for a while, but I am just getting around to
publishing the bug.  Sorry...

Reproduce code:
---------------
<?php
print snmp2_getnext("localhost","pubilc",".1.3.6.1.2");
?>

or 

<?php
print snmpgetnext("localhost","pubilc",".1.3.6.1.2");
?>


Expected result:
----------------
If you run the following command:

snmpgetnext -v 1 -c public localhost you would get

.1.3.6.1.2.1.1.1.0 = STRING: Hardware: x86 Family 6 Model 13 Stepping 8
AT/AT COMPATIBLE - Software: Windows 2000 Versio
n 5.1 (Build 2600 Uniprocessor Free)

Actual result:
--------------
Warning: snmp2_getnext(): No response from localhost in C:\test.php on
line 2


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38516&edit=1

Reply via email to