2010-06-12 17:24:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$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
|
|
|
|
|
|
|
$features = "";
|
|
|
|
|
2012-05-25 12:24:34 +00:00
|
|
|
// Filthy hack to get software version. may not work on anything but 585v7 :)
|
2010-06-12 17:24:35 +00:00
|
|
|
|
2012-05-15 13:45:26 +00:00
|
|
|
$loop = shell_exec($config['snmpget'] . " -M ".$config['mibdir'] . ' -Ovq '. snmp_gen_auth($device) .' '.$device['hostname'].' ifDescr.101');
|
2011-03-15 11:59:47 +00:00
|
|
|
|
|
|
|
if ($loop)
|
|
|
|
{
|
2010-06-12 17:24:35 +00:00
|
|
|
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i',
|
|
|
|
$loop, $matches);
|
|
|
|
$version = $matches[1];
|
2011-03-15 11:59:47 +00:00
|
|
|
}
|
2010-06-12 17:24:35 +00:00
|
|
|
|
2012-05-15 13:45:26 +00:00
|
|
|
?>
|