i'm having a heck of a time getting snmpv2 to work with php. does anyone else
have it working yet?

i'm on rh 7.3 with apache v 1.3.23-14 and php v 4.1.2-7.3.6 on a test system
not on the internet.

what i'm trying to accomplish is a mib walk with php on a device that only
supports snmpv2.

here is the code i'm currently using:

<?
$a = snmpwalk("10.10.1.1", "cn", "");
for ($i=0; $i<count($a); $i++) {
     echo $a[$i] . "<br>";
}
?>

works great on snmpv1 devices- but snmpv2 returns this:
Warning: snmpwalk() [function.snmpwalk]: No response from 10.10.1.1
in /home/httpd/html/snmp.php on line 2

r

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to