Added basic Ubiquiti support

This commit is contained in:
laf
2015-03-25 16:33:05 +00:00
parent 0cd8b17d37
commit 4a2e6a4375
4 changed files with 24 additions and 0 deletions

BIN
html/images/os/ubiquiti.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

View File

@@ -580,6 +580,11 @@ $config['os'][$os]['text'] = "D-Link Access Point";
$config['os'][$os]['type'] = "wireless";
$config['os'][$os]['icon'] = "dlink";
$os = "ubiquitiap";
$config['os'][$os]['text'] = "Ubiquiti Networks Wireless";
$config['os'][$os]['type'] = "wireless";
$config['os'][$os]['icon'] = "ubiquiti";
$os = "axiscam";
$config['os'][$os]['text'] = "AXIS Network Camera";
$config['os'][$os]['icon'] = "axis";

View File

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

View File

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