mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
j
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (strstr($sysDescr, 'JETDIRECT')) {
|
||||
$os = 'jetdirect';
|
||||
}
|
||||
if (strstr($sysDescr, 'HP ETHERNET MULTI-ENVIRONMENT')) {
|
||||
$os = 'jetdirect';
|
||||
}
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.11.1')) {
|
||||
$os = 'jetdirect';
|
||||
}
|
||||
if (str_contains($sysDescr, array('JETDIRECT', 'HP ETHERNET MULTI-ENVIRONMENT'))) {
|
||||
$os = 'jetdirect';
|
||||
}
|
||||
|
||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.11.1')) {
|
||||
$os = 'jetdirect';
|
||||
}
|
||||
|
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.1411.102')) {
|
||||
$os = 'juniperex2500os';
|
||||
}
|
||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.1411.102')) {
|
||||
$os = 'juniperex2500os';
|
||||
}
|
||||
|
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.2636')) {
|
||||
$os = 'junos';
|
||||
} elseif (stristr($sysDescr, 'kernel JUNOS')) {
|
||||
$os = 'junos';
|
||||
}
|
||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.2636')) {
|
||||
$os = 'junos';
|
||||
}
|
||||
|
||||
if (str_contains($sysDescr, 'kernel JUNOS')) {
|
||||
$os = 'junos';
|
||||
}
|
||||
|
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.4874')) {
|
||||
$os = 'junose';
|
||||
}
|
||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.4874')) {
|
||||
$os = 'junose';
|
||||
}
|
||||
|
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, '1.3.6.1.4.1.8239.1.2.9')) {
|
||||
$os = 'jwos';
|
||||
}
|
||||
if (starts_with($sysObjectId, '.1.3.6.1.4.1.8239.1.2.9')) {
|
||||
$os = 'jwos';
|
||||
}
|
||||
|
Reference in New Issue
Block a user