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

11 lines
267 B
PHP
Raw Normal View History

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