Skip to content

Commit

Permalink
Merge pull request #188 from toyowheelin/issue-183
Browse files Browse the repository at this point in the history
This adds support for EAP600 and possibly other engenius access points a...
  • Loading branch information
paulgear committed Mar 28, 2014
2 parents d1c082d + b87d65a commit a71d340
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
9 changes: 8 additions & 1 deletion includes/discovery/os/engenius.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
{
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";
}
}
}

?>
?>
23 changes: 18 additions & 5 deletions includes/polling/os/engenius.inc.php
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -33,5 +46,5 @@
$features = "WDS Bridge mode";
break;
}

?>
}
?>

0 comments on commit a71d340

Please sign in to comment.