Add OS tests and use sysObjectId for device recognition

This commit is contained in:
Guillem Mateos
2016-10-21 21:01:45 +02:00
parent 84f2bb6172
commit 47e3ec3d09
2 changed files with 2 additions and 3 deletions

View File

@@ -1,7 +1,5 @@
<?php
$genEquipInventoryCardName = snmp_get($device, 'MWRM-UNIT-MIB::genEquipInventoryCardName.127', '-Osqnv');
if (preg_match('/IP-[1,2]0/', $genEquipInventoryCardName)) {
if (starts_with($sysObjectId, '.1.3.6.1.4.1.2281')) {
$os = 'ceraos';
}