mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
16 lines
455 B
PHP
16 lines
455 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 = shell_exec($config['snmpget'].' -M '.$config['mibdir'].' -Ovq '.snmp_gen_auth($device).' '.$device['hostname'].' ifDescr.101');
|
|
|
|
if ($loop) {
|
|
preg_match('@([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)@i', $loop, $matches);
|
|
$version = $matches[1];
|
|
}
|