Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newdevice: Added detection for Ericsson UPC devices #6472

Merged
merged 1 commit into from Apr 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions includes/definitions/ipecs.yaml
@@ -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
26 changes: 26 additions & 0 deletions includes/polling/os/ipecs.inc.php
@@ -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);
6 changes: 6 additions & 0 deletions tests/OSDiscoveryTest.php
Expand Up @@ -966,6 +966,12 @@ public function testIosxr()
$this->checkOS('iosxr');
}

public function testIpecs()
{
$this->checkOS('ipecs', 'ipecs-ucp100');
$this->checkOS('ipecs', 'ipecs-ucp600');
}

public function testIpoman()
{
$this->checkOS('ipoman');
Expand Down
2 changes: 2 additions & 0 deletions tests/snmpsim/ipecs-ucp100.snmprec
@@ -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
2 changes: 2 additions & 0 deletions tests/snmpsim/ipecs-ucp600.snmprec
@@ -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