newdevice: Added support for Dell PowerConnect 6024 (#4987)

This commit is contained in:
Tony Murray
2016-11-14 20:45:36 -06:00
committed by GitHub
4 changed files with 10 additions and 1 deletions
+1 -1
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';
}
@@ -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';
}
+5
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');
+2
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