Files
librenms-librenms/includes/polling/os/qtech.inc.php
Alexander Moisseev 25330646f6 New OS: QTECH (#11556)
* New OS: QTECH

https://www.qtech.ru/en/catalog/

* QTECH: Add hardware, version and serial support

* QTECH: Fix platform and software version detection

* QTECH: Add test for QSW-3450
2020-05-06 23:34:02 +02:00

11 lines
320 B
PHP

<?php
preg_match('/^(.*) Device, Compiled /', $device['sysDescr'], $matches);
$hardware = $matches[1];
preg_match('/^ SoftWare Version (?:' . $hardware . '_)?(.*)$/m', $device['sysDescr'], $matches);
$version = $matches[1];
preg_match('/^ Serial No\.:(.*)$/m', $device['sysDescr'], $matches);
$serial = $matches[1];