librenms/includes/discovery/os/supermicro-switch.inc.php
2015-07-11 16:12:35 +02:00

14 lines
289 B
PHP

<?php
if (!$os) {
if (preg_match('/^Supermicro Switch/', $sysDescr)) {
$os = 'supermicro-switch';
}
if (preg_match('/^SSE-/', $sysDescr)) {
$os = 'supermicro-switch';
}
if (preg_match('/^SBM-/', $sysDescr)) {
$os = 'supermicro-switch';
}
}