[wplug] Slightly OT - PHP and SNMPGET under linux

scoob8000 scoob8000 at gmail.com
Mon Jun 9 11:34:55 EDT 2008


Slightly off topic, but I'm not sure where else to ask such a question.

I'm in the process of moving some of my php stuff from a Windows box to a
RHEL (Centos) box.  Obviously I need
to clean up some of the paths in my code but I'm running into another
stumper (for me anyway).

$voltsa = snmpget("$bladeip", "public",
".1.3.6.1.4.1.6066.2.1.3.2.1.1.1.1.4.17", 250000, 1);
echo $voltsa;

On a Windows box, this returns:  -5173
On the Centos box it returns:  INTEGER: -5173

It seems to be prefixing most (not all) of my variables derrived from SNMP
with either "INTEGER:" or "STRING:".

I can trim this stuff out, but I'm guessing it's an option or switch I can
turn off?


Thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20080609/7949a987/attachment.html 


More information about the wplug mailing list