Updating to include Pro versions

This commit is contained in:
laf
2015-03-25 17:06:20 +00:00
parent ae9c4a370a
commit a6802ec217
2 changed files with 4 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
<?php
if (!$os) {
if (stristr(snmp_get($device, "dot11manufacturerName.5", "-Oqv", "IEEE802dot11-MIB"),"Ubiquiti Networks") ) {
if (stristr(snmp_get($device, "dot11manufacturerName.5", "-Oqv", "IEEE802dot11-MIB"),"Ubiquiti Networks") || stristr(snmp_get($device, "dot11manufacturerName.6", "-Oqv", "IEEE802dot11-MIB"),"Ubiquiti Networks")) {
$os = "ubiquitiap";
}
}

View File

@@ -1,6 +1,9 @@
<?php
$data = snmp_get_multi($device, "dot11manufacturerProductName.5 dot11manufacturerProductVersion.5", "-Oqv", "IEEE802dot11-MIB");
if (empty($data)) {
$data = snmp_get_multi($device, "dot11manufacturerProductName.6 dot11manufacturerProductVersion.6", "-Oqv", "IEEE802dot11-MIB");
}
$hardware = $data[0];
if (preg_match("/(v[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", $data[1],$matches)) {