2012-01-02 15:56:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// ArubaOS (MODEL: Aruba3600), Version 6.1.2.2 (29541)
|
|
|
|
$badchars = array("(", ")", ",");
|
2012-02-14 19:01:23 +00:00
|
|
|
list(,,$hardware,,$version,) = str_replace($badchars, "", explode (" ", $poll_device['sysDescr']));
|
2012-01-02 15:56:00 +00:00
|
|
|
|
2012-05-25 12:24:34 +00:00
|
|
|
/// Build SNMP Cache Array
|
2012-05-21 18:17:23 +00:00
|
|
|
|
|
|
|
//stuff about the controller
|
|
|
|
$switch_info_oids = array('wlsxSwitchRole','wlsxSwitchMasterIp');
|
|
|
|
echo("Caching Oids: ");
|
|
|
|
foreach ($switch_info_oids as $oid) { echo("$oid "); $aruba_info = snmpwalk_cache_oid($device, $oid, $aruba_info, "WLSX-SWITCH-MIB"); }
|
|
|
|
|
|
|
|
echo("\n");
|
|
|
|
|
|
|
|
if ($aruba_info[0]['wlsxSwitchRole']=='master') {
|
|
|
|
$features="Master Controller";
|
|
|
|
} else {
|
|
|
|
$features="Local Controller for ".$aruba_info[0]['wlsxSwitchMasterIp'];
|
|
|
|
}
|
|
|
|
|
2012-01-02 15:56:00 +00:00
|
|
|
?>
|