Merge pull request #4564 from murrant/eaton

newdevice: Eaton PowerXpert
This commit is contained in:
Neil Lathwood
2016-09-23 22:51:00 +01:00
committed by GitHub
3 changed files with 6 additions and 5 deletions

View File

@@ -1,7 +1,5 @@
<?php
if (!$os) {
// Eaton UPS
if (str_contains($sysDescr, 'Eaton 5P')) {
$os = 'eatonups';
}
// Eaton UPS
if (starts_with($sysDescr, 'Eaton 5P') || starts_with($sysObjectId, '.1.3.6.1.4.1.534.')) {
$os = 'eatonups';
}

View File

@@ -447,6 +447,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
{
$this->checkOS('eatonups', 'eaton-5p');
$this->checkOS('eatonups', 'eaton-5px');
$this->checkOS('eatonups', 'eaton-powerxpert');
}
public function testEdgeos()

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Linux PowerXpert-00-60-26-11-CD-77 2.6.32-rc8 #1 Thu Sep 29 17:28:50 EDT 2011 armv4tl
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.534.2.12