Added detection for BDCom devices

This commit is contained in:
laf
2016-05-02 15:42:13 +00:00
parent 3a8ca63a59
commit e138318f64
4 changed files with 32 additions and 0 deletions

BIN
html/images/os/bdcom.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -368,6 +368,18 @@ $config['os'][$os]['icon'] = 'calix';
$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';

View File

@@ -0,0 +1,7 @@
<?php
if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.3320.1.185')) {
$os = 'bdcom';
}
}

View File

@@ -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'];