librenms/includes/discovery/os/routeros.inc.php

10 lines
226 B
PHP
Raw Normal View History

<?php
2016-09-23 21:13:33 +00:00
if (starts_with($sysDescr, 'router') && is_numeric(snmp_get($device, 'SNMPv2-SMI::enterprises.14988.1.1.4.3.0', '-Oqv', ''))) {
2016-09-22 20:03:44 +00:00
$os = 'routeros';
}
2016-09-22 22:36:45 +00:00
if (starts_with($sysDescr, 'RouterOS')) {
2016-09-22 20:03:44 +00:00
$os = 'routeros';
}