librenms/includes/polling/os/dlink.inc.php
2015-07-15 11:04:22 +02:00

8 lines
301 B
PHP

<?php
$Descr_string = snmp_get($device, 'sysDescr.0', '-Oqv', 'SNMPv2-MIB');
$Descr_chopper = preg_split('/[ ]+/', "$Descr_string");
$version = 'Firmware '.$Descr_chopper[1];
$hardware = $Descr_chopper[0].' Rev. '.str_replace('"', '', snmp_get($device, '1.3.6.1.4.1.171.10.76.10.1.2.0', '-Oqv'));