mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
support hardware and version detection from lame procurves such as 1800 series
git-svn-id: http://www.observium.org/svn/observer/trunk@3035 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -13,6 +13,12 @@ if ($altversion) { $version = $altversion; }
|
|||||||
$altversion = trim(snmp_get($device,".1.3.6.1.4.1.11.2.3.7.11.12.1.2.1.11.0", "-Oqv"),'"');
|
$altversion = trim(snmp_get($device,".1.3.6.1.4.1.11.2.3.7.11.12.1.2.1.11.0", "-Oqv"),'"');
|
||||||
if ($altversion) { $version = $altversion; }
|
if ($altversion) { $version = $altversion; }
|
||||||
|
|
||||||
|
if (preg_match('/^PROCURVE (.*) - (.*)/', $poll_device['sysDescr'], $regexp_result))
|
||||||
|
{
|
||||||
|
$hardware = "ProCurve " . $regexp_result[1];
|
||||||
|
$version = $regexp_result[2];
|
||||||
|
}
|
||||||
|
|
||||||
$serial = snmp_get($device, ".1.3.6.1.4.1.11.2.36.1.1.2.9.0", "-Oqv", "SEMI-MIB");
|
$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));
|
$serial = trim(str_replace("\"", "", $serial));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user