crcro 97e9a7f692 i
2016-09-24 16:24:07 +03:00

21 lines
485 B
PHP

<?php
if (str_contains($sysDescr, array('Cisco Internetwork Operating System Software', 'IOS (tm)', 'Cisco IOS Software', 'Global Site Selector'))) {
$os = 'ios';
}
if (str_contains($sysDescr, 'IOS-XE')) {
$os = 'iosxe';
}
if (str_contains($sysDescr, 'IOS XR')) {
$os = 'iosxr';
}
if (!empty($os)) {
$extra_mibs = array(
"ciscoAAASessionMIB" => "CISCO-AAA-SESSION-MIB",
);
register_mibs($device, $extra_mibs, "includes/discovery/os/ios.inc.php");
}