This commit is contained in:
crcro
2016-09-24 16:30:32 +03:00
parent 97e9a7f692
commit 1d7592e85d
5 changed files with 18 additions and 28 deletions

View File

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

View File

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

View File

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

View File

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

View File

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