Click to See Complete Forum and Search --> : PHP + SNMP + Win2000


Anon
11-02-2000, 12:36 PM
When I use the coding:

<?
$a = snmpget("127.0.0.1", "public", "system.sysName.0");
echo $a;
?>

I get the error message:

Warning: Invalid object identifier: system.sysName.0 in c:\brian\httpd\wwwroot\test.php on line 7

Is there a different syntax between Win2K and Unix? And it doesn't matter what IP I use, I try to query my Linux machine or my other Win2K box and I have no luck. All of these boxes DO have snmpd installed, I can query them using the snmpget command off of my Linux box, so I have a feeling that Windows refers to the objects differently.

Thanks
Brian