2010-06-12 17:24:35 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$serial = '';
|
|
|
|
// list(,$hardware,) = explode(" ", $hardware);
|
2012-02-14 19:01:23 +00:00
|
|
|
$hardware = $poll_device['sysDescr'];
|
2010-06-12 17:24:35 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$features = '';
|
2010-06-12 17:24:35 +00:00
|
|
|
|
2012-05-25 12:24:34 +00:00
|
|
|
// Filthy hack to get software version. may not work on anything but 585v7 :)
|
2015-07-10 13:36:21 +02:00
|
|
|
$loop = shell_exec($config['snmpget'].' -M '.$config['mibdir'].' -Ovq '.snmp_gen_auth($device).' '.$device['hostname'].' ifDescr.101');
|
2010-06-12 17:24:35 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if ($loop) {
|
|
|
|
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i', $loop, $matches);
|
2010-06-12 17:24:35 +00:00
|
|
|
$version = $matches[1];
|
2011-03-15 11:59:47 +00:00
|
|
|
}
|