mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
newdevice: Added support for Dell PowerConnect 6024
This commit is contained in:
parent
8841eece94
commit
5b3283d572
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (str_contains($sysDescr, array('Ethernet Routing Switch', 'ERS-'))) {
|
||||
if (str_contains($sysDescr, array('Ethernet Routing Switch', 'ERS-')) && !starts_with($sysObjectId, '.1.3.6.1.4.1.674.10895.3000')) {
|
||||
$os = 'avaya-ers';
|
||||
}
|
||||
|
@ -8,4 +8,6 @@ if (str_contains($sysDescr, 'PowerConnect') && !str_contains($sysDescr, 'ArubaOS
|
||||
$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';
|
||||
}
|
||||
|
@ -1049,6 +1049,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
$this->checkOS('poweralert');
|
||||
}
|
||||
|
||||
public function testPowerconnect()
|
||||
{
|
||||
$this->checkOS('powerconnect');
|
||||
}
|
||||
|
||||
public function testPowervault()
|
||||
{
|
||||
$this->checkOS('powervault');
|
||||
|
2
tests/snmpsim/powerconnect.snmprec
Normal file
2
tests/snmpsim/powerconnect.snmprec
Normal file
@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Ethernet Routing Switch
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.674.10895.3000
|
Loading…
Reference in New Issue
Block a user