I am having trouble getting the SNMP library to work. It is compiled in and
basic calls work but I don't understand what the problem is with using it
through PHP.

This call from the Unix Shell works:

snmpget XX.XX.XX.XX community_name enterprises.838.3.1.1.1.1.0
enterprises.838.3.1.1.1.1.0 = "04/09/2001 12:37:48:13"

But the function

snmpget("XX.XX.XX.XX","community_name","enterprises.838.3.1.1.1.1.0"); in
PHP

Returns:

Warning: Invalid object identifier: enterprises.838.3.1.1.1.1.0 in
/usr/local/apache/htdocs/index.php on line 23

I tried just using the number representation of that string and it gives the
same thing. (i.e. replace entrerprises with it's numerical equivalent)

What I don't understand is that

snmpget("XX.XX.XX.XX","community_name","system.sysDescr.0");

Works just fine and returns the information about the box. Some of the
numerical ones work well also but none of the "enterprises" section is
retrievable from PHP.

Anyone have any ideas?

Thanks,
Zach



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to