From 24aaf17f564de11330ebd7c1002bafb588b4ee4d Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 15 Feb 2017 11:43:42 -0600 Subject: [PATCH] powerconnect detection for M8024-k (#5911) fixes: 5905 --- includes/definitions/powerconnect.yaml | 1 + tests/OSDiscoveryTest.php | 1 + tests/snmpsim/powerconnect-3041.snmprec | 2 ++ 3 files changed, 4 insertions(+) create mode 100644 tests/snmpsim/powerconnect-3041.snmprec diff --git a/includes/definitions/powerconnect.yaml b/includes/definitions/powerconnect.yaml index 589f2f9a06..1f97684d4c 100644 --- a/includes/definitions/powerconnect.yaml +++ b/includes/definitions/powerconnect.yaml @@ -12,3 +12,4 @@ mib_dir: discovery: - sysObjectId_regex: - '/^.1.3.6.1.4.1.674.10895.30[0-3][0-9]/' + - '/^.1.3.6.1.4.1.674.10895.3041/' diff --git a/tests/OSDiscoveryTest.php b/tests/OSDiscoveryTest.php index bffcb4efff..bd91fba35c 100644 --- a/tests/OSDiscoveryTest.php +++ b/tests/OSDiscoveryTest.php @@ -1305,6 +1305,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase $this->checkOS('powerconnect', 'powerconnect-3011'); $this->checkOS('powerconnect', 'powerconnect-3019'); $this->checkOS('powerconnect', 'powerconnect-3031'); + $this->checkOS('powerconnect', 'powerconnect-3041'); } public function testPowervault() diff --git a/tests/snmpsim/powerconnect-3041.snmprec b/tests/snmpsim/powerconnect-3041.snmprec new file mode 100644 index 0000000000..e6bc18b8d7 --- /dev/null +++ b/tests/snmpsim/powerconnect-3041.snmprec @@ -0,0 +1,2 @@ +1.3.6.1.2.1.1.1.0|4|PowerConnect M8024-k, 5.1.10.1, VxWorks 6.6 +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.674.10895.3041