librenms/includes/discovery/os/huaweiups.inc.php
Neil Lathwood 6fdcf8a6da refactor: OS Discovery files D-H (#4572)
* refactor: OS Discovery files D-H

* Combine edgeswitch check

* fix my typo

* update to fix tests
2016-09-27 22:31:16 +01:00

8 lines
189 B
PHP

<?php
if (starts_with($sysDescr, 'Linux GSE200M')) {
if (str_contains(snmp_get($device, 'UPS-MIB::upsIdentManufacturer.0', '-Oqv', ''), 'HUAWEI')) {
$os = 'huaweiups';
}
}