mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
21 lines
485 B
PHP
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");
|
|
}
|