mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* 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
11 lines
320 B
PHP
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];
|