Detect PowerConnect 5324 as powerconnect os

This commit is contained in:
Tony Murray
2016-08-08 23:05:30 -05:00
parent b93a060458
commit 7c7c615951

View File

@ -1,14 +1,14 @@
<?php
if (!$os) {
// if (strstr($sysDescr, "Neyland 24T")) { $os = "powerconnect"; } /* Powerconnect 5324 */
if (stristr($sysDescr, 'PowerConnect ') && !stristr($sysDescr, 'ArubaOS')) {
$os = 'powerconnect';
}
else if (preg_match('/Dell.*Gigabit\ Ethernet/i', $sysDescr)) {
} elseif (preg_match('/Dell.*Gigabit\ Ethernet/i', $sysDescr)) {
$os = 'powerconnect';
} //end if
else if (stristr(snmp_get($device, '1.3.6.1.4.1.674.10895.3000.1.2.100.1.0', '-Oqv', ''), 'PowerConnect')) {
} elseif (strstr($sysDescr, 'Neyland 24T')) {
/* PowerConnect 5324 */
$os = 'powerconnect';
} elseif (stristr(snmp_get($device, '1.3.6.1.4.1.674.10895.3000.1.2.100.1.0', '-Oqv', ''), 'PowerConnect')) {
$os = 'powerconnect';
}
}