Files
librenms-librenms/includes/polling/os/ascom.inc.php
PipoCanaja 07d4da21ca Add support for Ascom IPBS (#11308)
* ascom support

* tests

* typo

* Correct missing 'mpls' in misc/os_schema.json

* remove mpls for now

* tests

* Update ascom.svg

* Don't disable already disabled modules

As I usually state, not much gain in disabling these here.   Would be better to optimize the modules if you think they take too long on devices that don't have support.

* refactor polling code

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-04-10 13:21:25 +02:00

16 lines
613 B
PHP

<?php
/*
* LibreNMS
*
* Copyright (c) 2020 PipoCanaja
* 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. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
preg_match("/^(.*)\[([^\]]+)\], Bootcode\[([^\]]+)\], Hardware\[([^\]]+)\]/i", $device['sysDescr'], $matches);
$version = $matches[1] . ' ' . $matches[2] . ', Bootcode ' . $matches[3];
$hardware = $matches[4];