From 14e0aa095274e000919eafe6478511fdb864f300 Mon Sep 17 00:00:00 2001 From: Ambroise Date: Tue, 23 Apr 2019 15:47:29 +0200 Subject: [PATCH] Netscaler serial number (#329) Recover Netscaler serial number from the MIB. --- lib/SNMP/Info/Layer7/Netscaler.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/SNMP/Info/Layer7/Netscaler.pm b/lib/SNMP/Info/Layer7/Netscaler.pm index 788a0557..8c1d9c86 100644 --- a/lib/SNMP/Info/Layer7/Netscaler.pm +++ b/lib/SNMP/Info/Layer7/Netscaler.pm @@ -49,6 +49,7 @@ $VERSION = '3.67'; %SNMP::Info::Layer7::GLOBALS, 'build_ver' => 'sysBuildVersion', 'sys_hw_desc' => 'sysHardwareVersionDesc', + 'sys_hw_sn' => 'sysHardwareSerialNumber', 'cpu' => 'resCpuUsage', ); @@ -74,7 +75,8 @@ sub os { } sub serial { - return ''; + my $ns = shift; + return $ns->sys_hw_sn() || ''; } sub model {