As per the php.net manual, snmpget is used as follows:
string snmpget ( string hostname, string community, string object_id [, int timeout [, int retries]])
I assume that the string it returns back is the data AFTER the = sign. Because of this, I get weird returns with the word STRING: in them.
For example:
snmpget($ipaddress, "public", "system.sysLocation.0", 2);
On a solaris 8 server returns the following:
STRING: Dallas, Texas
The full value when manually doing a get...
SNMPv2-MIB::sysLocation.0 = STRING: Dallas, Texas
Is there any way to prevent the STRING: value from showing up? I guess I could just parse out that section... but you'd think there would be an additional option to return parts of returned data instead of all of it.