fix: MikroTik OS detection #3593

* MikroTik Updates

To address, Mikrotik SwOS Issues (#3593)

* Remove Default OS Setting
This commit is contained in:
arrmo
2016-09-09 11:29:46 -05:00
committed by Neil Lathwood
parent c5845006a1
commit 9db13372ca

View File

@ -1,7 +1,9 @@
<?php
if (!$os) {
if (is_numeric(snmp_get($device, 'SNMPv2-SMI::enterprises.14988.2', '-Oqv', ''))) {
$os = 'swos';
if (strstr(snmp_get($device, 'SNMPv2-MIB::sysName.0', '-Oqv', ''), 'MikroTik')) {
if (strstr(snmp_get($device, 'SNMPv2-MIB::sysDescr.0', '-Oqv', ''), 'RB260GS')) {
$os = 'swos';
}
}
}