newdevice: Added support for Dell PowerConnect 6024

This commit is contained in:
Neil Lathwood 2016-11-14 08:28:55 +00:00
parent 8841eece94
commit 5b3283d572
4 changed files with 10 additions and 1 deletions

View File

@ -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';
}

View File

@ -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';
}

View File

@ -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');

View 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