newdevice: improve Dell PowerConnect discovery (#5761)

This commit is contained in:
Tony Murray
2017-02-04 04:06:27 -06:00
committed by Neil Lathwood
parent a8dc640e96
commit d1818c1b2e
7 changed files with 15 additions and 13 deletions

View File

@@ -1,13 +0,0 @@
<?php
if (str_contains($sysDescr, 'PowerConnect') && !str_contains($sysDescr, 'ArubaOS')) {
$os = 'powerconnect';
} elseif (str_contains($sysDescr, 'Neyland 24T')) {
$os = 'powerconnect';
} elseif (str_contains($sysDescr, 'Dell', true) && str_contains($sysDescr, 'Gigabit Ethernet', true)) {
$os = 'powerconnect';
} elseif (str_contains(snmp_get($device, '.1.3.6.1.4.1.674.10895.3000.1.2.100.1.0', '-Oqv', ''), 'PowerConnect', true)) {
$os = 'powerconnect';
} elseif (starts_with($sysObjectId, '.1.3.6.1.4.1.674.10895.3000')) {
$os = 'powerconnect';
}