Files

16 lines
369 B
PHP
Raw Permalink Normal View History

<?php
$serial = '';
// list(,$hardware,) = explode(" ", $hardware);
2012-02-14 19:01:23 +00:00
$hardware = $poll_device['sysDescr'];
$features = '';
2012-05-25 12:24:34 +00:00
// Filthy hack to get software version. may not work on anything but 585v7 :)
$loop = snmp_get($device, 'ifDescr.101', '-Oqv');
if ($loop) {
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i', $loop, $matches);
$version = $matches[1];
2011-03-15 11:59:47 +00:00
}