SNMP Difficulties?!?!?!?!?

From: Date: Mon, 09 Apr 2001 12:59:35 +0000
Subject: SNMP Difficulties?!?!?!?!?
Groups: php.general 
Request: Send a blank email to php-general+get-47772@lists.php.net to get a copy of this message
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

« previous php.general (#47772) next »