From 2dfb37548d08c28372d016119afca684ae7170d2 Mon Sep 17 00:00:00 2001 From: tarik Date: Tue, 15 Sep 2020 13:29:15 -0700 Subject: [PATCH] adding serial number discovery to aruba os poller (#12053) --- includes/polling/os/arubaos.inc.php | 3 +++ tests/snmpsim/arubaos_aos65.snmprec | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/snmpsim/arubaos_aos65.snmprec diff --git a/includes/polling/os/arubaos.inc.php b/includes/polling/os/arubaos.inc.php index b65838ba2b..42dc49a7ba 100644 --- a/includes/polling/os/arubaos.inc.php +++ b/includes/polling/os/arubaos.inc.php @@ -9,6 +9,7 @@ list(,,$hardware,,$version,) = str_replace($badchars, '', explode(' ', $device[' $switch_info_oids = array( 'wlsxSwitchRole', 'wlsxSwitchMasterIp', + 'wlsxSwitchLicenseSerialNumber', ); echo 'Caching Oids: '; foreach ($switch_info_oids as $oid) { @@ -23,3 +24,5 @@ if ($aruba_info[0]['wlsxSwitchRole'] == 'master') { } else { $features = 'Local Controller for '.$aruba_info[0]['wlsxSwitchMasterIp']; } + +$serial = $aruba_info[0]['wlsxSwitchLicenseSerialNumber']; diff --git a/tests/snmpsim/arubaos_aos65.snmprec b/tests/snmpsim/arubaos_aos65.snmprec new file mode 100644 index 0000000000..49f4faffea --- /dev/null +++ b/tests/snmpsim/arubaos_aos65.snmprec @@ -0,0 +1,12 @@ +1.3.6.1.2.1.1.1.0|4|ArubaOS (MODEL: Aruba7030-US), Version 6.5.4.16 (74160) +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.14823.1.1.41 +1.3.6.1.2.1.1.3.0|67|174816600 +1.3.6.1.2.1.1.4.0|4| +1.3.6.1.2.1.1.5.0|4| +1.3.6.1.2.1.1.6.0|4| +1.3.6.1.4.1.14823.2.2.1.1.1.4.0|2|1 +1.3.6.1.4.1.14823.2.2.1.1.1.5.0|64|1.2.3.4 +1.3.6.1.4.1.14823.2.2.1.1.1.12.0|4|CR0009876 +1.3.6.1.4.1.14823.2.2.1.1.3.1.0|66|8 +1.3.6.1.4.1.14823.2.2.1.1.3.2.0|66|1 +1.3.6.1.6.3.10.2.1.3.0|2|1748035