newdevice: Added detection for Ericsson UPC devices (#6472)

This commit is contained in:
Neil Lathwood
2017-04-22 14:12:05 +01:00
committed by Tony Murray
parent 21a70dcb8a
commit d0201a9437
5 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,9 @@
os: ipecs
text: 'Ericsson iPECS'
type: appliance
icon: ericsson
over:
- { graph: device_bits, text: 'Device Traffic' }
discovery:
- sysObjectId:
- .1.3.6.1.4.1.572.16838

View File

@ -0,0 +1,26 @@
<?php
/**
* ipecs.inc.php
*
* LibreNMS OS poller module for Ericsson iPECS
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2017 Neil Lathwood
* @author Neil Lathwood <gh+n@laf.io>
*/
list(,$hardware,) = explode(',', $poll_device['sysDescr'], 3);

View File

@ -986,6 +986,12 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
$this->checkOS('iosxr');
}
public function testIpecs()
{
$this->checkOS('ipecs', 'ipecs-ucp100');
$this->checkOS('ipecs', 'ipecs-ucp600');
}
public function testIpoman()
{
$this->checkOS('ipoman');

View File

@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Ericsson-LG,UCP100,UCP-R2.0.16&Boot Version-1.0Da JAN/16
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.572.16838

View File

@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Ericsson-LG,UCP600, U600 UK80M-A.0Di MAR/15&Boot Version-1.0Ak OCT/14
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.572.16838