Non-vxworks based Quanta LB6M erroneously gets detected as Ubiquity Edgeswitch. New check for 'Quanta' in sysdescr added.

This commit is contained in:
Tamas Szabo
2015-12-15 12:54:49 +02:00
parent a063d24dac
commit 93f2d4b8d0
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<?php
if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413') && !stristr($sysDescr, 'vxworks')) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413') && (!stristr($sysDescr, 'vxworks') && !stristr($sysDescr, 'Quanta'))) {
$os = 'edgeswitch';
}
}

View File

@@ -1,6 +1,6 @@
<?php
if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413') && stristr($sysDescr, 'vxworks')) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413') && (stristr($sysDescr, 'vxworks') || stristr($sysDescr, 'Quanta'))) {
$os = 'quanta';
}
}