mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: improve Dell PowerConnect discovery (#5761)
This commit is contained in:
committed by
Neil Lathwood
parent
a8dc640e96
commit
d1818c1b2e
@@ -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';
|
||||
}
|
Reference in New Issue
Block a user