. * * @package LibreNMS * @link http://librenms.org * @copyright 2016 Neil Lathwood * @author Neil Lathwood */ // dd-wrt, cannot use exec with OID specified. Options are extend (w/OID), or exec (w/o OID) // -> extend seems to be the recommended approach, so use that (changes OID, which "spells out" name) list($ignore, $version) = explode(' ', snmp_get($device, 'NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."distro"', '-Osqnv')); $hardware = snmp_get($device, 'NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."hardware"', '-Osqnv'); unset($ignore);