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
This commit is contained in:
Tom Laermans
2012-04-07 22:28:53 +00:00
parent c32aaeb7fc
commit ff91c4d61b
+3
View File
@@ -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");