mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #188 from toyowheelin/issue-183
This adds support for EAP600 and possibly other engenius access points a...
This commit is contained in:
@@ -4,6 +4,13 @@ if (!$os)
|
||||
{
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.14125.100.1.3")) { $os = "engenius"; }
|
||||
else if (strstr($sysObjectId, ".1.3.6.1.4.1.14125.101.1.3")) { $os = "engenius"; }
|
||||
else if ($sysDescr == "Wireless Access Point")
|
||||
{
|
||||
if (!empty(snmp_get($device, "SNMPv2-SMI::enterprises.14125.2.1.1.6.0", "-Oqv", "")))
|
||||
{
|
||||
$os = "engenius";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@@ -1,17 +1,30 @@
|
||||
<?php
|
||||
|
||||
# Sorry about the OIDs but there doesn't seem to be a matching MIB available... :-/
|
||||
|
||||
if(!empty(snmp_get($device, "1.3.6.1.4.1.14125.100.1.8.0", "-OQv")))
|
||||
{
|
||||
$version = "Kernel " . trim(snmp_get($device, "1.3.6.1.4.1.14125.100.1.8.0", "-OQv"),'" ');
|
||||
$version .= " / Apps " . trim(snmp_get($device, "1.3.6.1.4.1.14125.100.1.9.0", "-OQv"),'" ');
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$version = "Firmware " . trim(snmp_get($device, "1.3.6.1.4.1.14125.2.1.1.5.0", "-OQv"),'" ');
|
||||
}
|
||||
$serial = trim(snmp_get($device, "1.3.6.1.4.1.14125.100.1.7.0", "-OQv"),'" ');
|
||||
|
||||
# There doesn't seem to be a real hardware identification.. sysName will have to do?
|
||||
if(!empty(snmp_get($device, "1.3.6.1.4.1.14125.100.1.6.0", "-OQv")))
|
||||
{
|
||||
$hardware = str_replace("EnGenius ","",snmp_get($device,"sysName.0", "-OQv")) . " v" . trim(snmp_get($device, "1.3.6.1.4.1.14125.100.1.6.0", "-OQv"),'" .');
|
||||
}
|
||||
else
|
||||
{
|
||||
$hardware = snmp_get($device,"sysName.0", "-OQv") . trim(snmp_get($device, "1.3.6.1.4.1.14125.3.1.1.5.0", "-OQv"),'" .');
|
||||
}
|
||||
|
||||
$mode = snmp_get($device, "1.3.6.1.4.1.14125.100.1.4.0", "-OQv");
|
||||
|
||||
if(is_numeric($mode))
|
||||
{
|
||||
switch ($mode)
|
||||
{
|
||||
case 0:
|
||||
@@ -33,5 +46,5 @@ switch ($mode)
|
||||
$features = "WDS Bridge mode";
|
||||
break;
|
||||
}
|
||||
|
||||
?>
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user