Click to See Complete Forum and Search --> : snmp with php


Anon
09-13-2001, 01:51 AM
Server : w2k
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.sysDescr.0 in D:\www\surasak\snmp.php on line 3

Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none)

help me

Anon
01-16-2002, 01:00 AM
In order to use the SNMP functions on Unix you need to install the UCD SNMP package. On Windows these functions are only available on NT and not on Win95/98.

Ref:http://www.php.net/manual/en/ref.snmp.php