ID: 38516
Comment by: metaur at telia dot com
Reported By: larryjadams at comcast dot net
Status: Open
Bug Type: SNMP related
Operating System: Win32
PHP Version: 5.1.5
New Comment:
Wrong community string? (One of your examples say "public" and the
other says "pubilc".)
// Ulf Härnhammar
Previous Comments:
------------------------------------------------------------------------
[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