librenms-librenms/includes/polling/os/speedtouch.inc.php
2015-07-11 16:12:35 +02:00

16 lines
455 B
PHP

<?php
$serial = '';
// list(,$hardware,) = explode(" ", $hardware);
$hardware = $poll_device['sysDescr'];
$features = '';
// Filthy hack to get software version. may not work on anything but 585v7 :)
$loop = shell_exec($config['snmpget'].' -M '.$config['mibdir'].' -Ovq '.snmp_gen_auth($device).' '.$device['hostname'].' ifDescr.101');
if ($loop) {
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i', $loop, $matches);
$version = $matches[1];
}