Skip to content

Instantly share code, notes, and snippets.

@ollyg
Created September 30, 2024 21:36
Show Gist options
  • Save ollyg/4d039d21654f6107d71d2ae30c9c9337 to your computer and use it in GitHub Desktop.
Save ollyg/4d039d21654f6107d71d2ae30c9c9337 to your computer and use it in GitHub Desktop.
Aruba Instant APs Serial in SNMP::Info
%MIBS = (
%SNMP::Info::Layer3::MIBS,
'WLSR-AP-MIB' => 'wlsrHideSSID',
'WLSX-IFEXT-MIB' => 'ifExtVlanName',
'WLSX-POE-MIB' => 'wlsxPseSlotPowerAvailable',
'WLSX-SWITCH-MIB' => 'wlsxHostname',
'WLSX-SYSTEMEXT-MIB' => 'wlsxSysExtSwitchBaseMacaddress',
'WLSX-USER-MIB' => 'nUserCurrentVlan',
'WLSX-WLAN-MIB' => 'wlanAPFQLN',
'AI-AP-MIB' => 'aiAPSerialNum',
#'ALCATEL-IND1-TP-DEVICES' => 'familyOmniAccessWireless',
);
%GLOBALS = (
%SNMP::Info::Layer3::GLOBALS,
'aruba_serial_old' => 'wlsxSwitchLicenseSerialNumber',
'aruba_serial_new' => 'wlsxSysExtLicenseSerialNumber',
'aruba_instantap_serial' => 'aiAPSerialNum',
'aruba_model' => 'wlsxModelName',
'mac' => 'wlsxSysExtSwitchBaseMacaddress',
);
sub serial {
my $aruba = shift;
return $aruba->aruba_serial_old() || $aruba->aruba_serial_new() || $aruba->aruba_instantap_serial();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment