From ff91c4d61bd6a9b773e58424a2d801f5ca7c43b9 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 7 Apr 2012 22:28:53 +0000 Subject: [PATCH] Get serial-number for HP switches. Patch by RobJE. git-svn-id: http://www.observium.org/svn/observer/trunk@2984 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/os/procurve.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/polling/os/procurve.inc.php b/includes/polling/os/procurve.inc.php index a3d7f461a9..5b5b4d5f8a 100755 --- a/includes/polling/os/procurve.inc.php +++ b/includes/polling/os/procurve.inc.php @@ -3,6 +3,9 @@ list($hardware, $version, $features) = explode(",", str_replace(", ", ",", $poll_device['sysDescr'])); list($features) = explode("(", $version); +$serial = snmp_get($device, ".1.3.6.1.4.1.11.2.36.1.1.2.9.0", "-Oqv", "SEMI-MIB"); +$serial = trim(str_replace("\"", "", $serial)); + $fdb_rrd_file = $config['rrd_dir'] . "/" . $device['hostname'] . "/fdb_count.rrd"; $FdbAddressCount = snmp_get ($device, "hpSwitchFdbAddressCount.0", "-Ovqn", "STATISTICS-MIB");