Files
2017-12-20 21:48:35 +00:00

16 lines
369 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 = snmp_get($device, 'ifDescr.101', '-Oqv');
if ($loop) {
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i', $loop, $matches);
$version = $matches[1];
}