2015-04-05 00:27:02 +01:00
|
|
|
<?php
|
2018-01-22 00:41:13 +11:00
|
|
|
if ($data = snmp_getnext_multi($device, 'unifiApSystemModel unifiApSystemVersion', '-OQUs', 'UBNT-UniFi-MIB')) {
|
2018-01-09 16:48:04 +11:00
|
|
|
$hardware = $data['unifiApSystemModel'];
|
|
|
|
|
$version = $data['unifiApSystemVersion'];
|
|
|
|
|
} elseif ($data = snmp_getnext_multi($device, 'dot11manufacturerProductName dot11manufacturerProductVersion', '-OQUs', 'IEEE802dot11-MIB')) {
|
|
|
|
|
$hardware = $data['dot11manufacturerProductName'];
|
|
|
|
|
if (preg_match('/(v[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/', $data['dot11manufacturerProductVersion'], $matches)) {
|
2015-04-05 00:27:02 +01:00
|
|
|
$version = $matches[0];
|
|
|
|
|
}
|
|
|
|
|
}
|