2010-06-12 17:24:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
echo("Doing Thompson Speedtouch ");
|
|
|
|
|
|
|
|
$serial = "";
|
|
|
|
#list(,$hardware,) = explode(" ", $hardware);
|
|
|
|
$hardware = $sysDescr;
|
|
|
|
|
|
|
|
$features = "";
|
|
|
|
|
|
|
|
### Filthy hack to get software version. may not work on anything but 585v7 :)
|
|
|
|
|
2010-07-02 19:58:13 +00:00
|
|
|
$loop = shell_exec($config['snmpget'] . " -M ".$config['mibdir'] . ' -Ovq -v1 -c '.$device['community'].' '.$device['hostname'].' ifDescr.101');
|
2010-06-12 17:24:35 +00:00
|
|
|
if($loop) {
|
|
|
|
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i',
|
|
|
|
$loop, $matches);
|
|
|
|
$version = $matches[1];
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|