This function can be used to identify devices on a network, by getting their sysObjectID and sysDescr. On short, this is what I did:
<?php
$sysid = @snmpget($ip, 'public', '.1.3.6.1.2.1.1.2.0', 300);
if($sysid) {
$sysdescr = @snmpget($ip, 'public', '.1.3.6.1.2.1.1.1.0', 300);
}
?>
What I get for equipments, for example:
<?php
$sysid = 'OID: .iso.3.6.1.4.1.5003.8.1.1.57';$sysdescr = '"Product: MP-114 FXS;SW Version: 5.00A.024"';
?>
Unfortunately, not all of them report correct objectID, for example they report only the vendor and stop there etc.
In case you are wondering why I used the code '.1.3.6.1.2.1.1.2.0' in the function call instead of "sysObjectID.0", it's because only numeric codes seem to work on Windows. For more codes, google "cisco SNMP Object Navigator".
Have fun.