Skip to content

Commit

Permalink
Merge pull request #3459 from laf/issue-2878
Browse files Browse the repository at this point in the history
Added detection for BDCom devices
  • Loading branch information
laf committed May 2, 2016
2 parents 3a8ca63 + e138318 commit 7b91307
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
Binary file added html/images/os/bdcom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions includes/definitions.inc.php
Expand Up @@ -368,6 +368,18 @@
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';

// BDCom
$os = 'bdcom';
$config['os'][$os]['text'] = 'Calix E7';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'bdcom';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
$config['os'][$os]['over'][1]['graph'] = 'device_processor';
$config['os'][$os]['over'][1]['text'] = 'Processor Usage';
$config['os'][$os]['over'][2]['graph'] = 'device_mempool';
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';

// Cisco OSes
$os = 'ios';
$config['os'][$os]['group'] = 'cisco';
Expand Down
7 changes: 7 additions & 0 deletions includes/discovery/os/bdcom.inc.php
@@ -0,0 +1,7 @@
<?php

if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.3320.1.185')) {
$os = 'bdcom';
}
}
13 changes: 13 additions & 0 deletions includes/polling/os/bdcom.inc.php
@@ -0,0 +1,13 @@
<?php

/**
BDCOM(tm) S2524C Software, Version 2.1.0A Build 5721
Compiled: 2011-11-1 15:57:26 by SYS
ROM: System Bootstrap,Version 0.3.2,Serial num:27072980
**/

preg_match('/BDCOM\(tm\) ([A-Z0-9]+) Software, Version (.*)\nCompiled: (.*)\n(.*),Serial num:([0-9]+)/', $poll_device['sysDescr'], $matches);
$hardware = $matches['1'];

$version = $matches['2'];
$serial = $matches['5'];

0 comments on commit 7b91307

Please sign in to comment.