Files
librenms-librenms/includes/polling/os/bdcom.inc.php
Kako Pedreros 233f8e83b4 newdevice: Added CPU and Memory pool for BDCom Switchs (#6523)
* Added feature CPU and Memory monitoring on BDCom switchs

* Added feature CPU and Memory monitoring on BDCom switchs, plus pre-commit check

* Added mib files, and modification given by laf

* Replaced png logo with a svg version. Modification in the validation of processor discovery.

* Replaced png logo with a svg version. Modification in the validation of processor discovery + added files.
2017-05-03 00:04:44 +01:00

14 lines
383 B
PHP

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