librenms-librenms/includes/discovery/os/supermicro-switch.inc.php

14 lines
289 B
PHP
Raw Normal View History

<?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';
}
}