mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: improve IOS-XE detection (#6429)
PPC_LINUX_IOSD or X86_64_LINUX_IOSD means IOS-XE, Drop the X86_64_ as that gives us full coverage. Drop IOS-XE usage for detection. Allows us to migrate ios detection to yaml.
This commit is contained in:
committed by
Neil Lathwood
parent
d64a083141
commit
9c44b1a809
@ -8,6 +8,14 @@ over:
|
||||
- { graph: device_processor, text: 'CPU Usage' }
|
||||
- { graph: device_mempool, text: 'Memory Usage' }
|
||||
icon: cisco
|
||||
discovery:
|
||||
-
|
||||
sysDescr:
|
||||
- 'Cisco Internetwork Operating System Software'
|
||||
- 'IOS (tm)'
|
||||
- 'Cisco IOS Software'
|
||||
- 'Global Site Selector'
|
||||
sysDescr_regex: '/^((?!LINUX_IOSD).)*$/' #IOS-XE adding more regex will break detection, modify instead
|
||||
bad_ifXEntry:
|
||||
- cisco1941
|
||||
- cisco886Va
|
||||
|
@ -34,5 +34,4 @@ register_mibs:
|
||||
ciscoAAASessionMIB: CISCO-AAA-SESSION-MIB
|
||||
discovery:
|
||||
- sysDescr:
|
||||
- IOS-XE
|
||||
- X86_64_LINUX_IOSD
|
||||
- LINUX_IOSD
|
||||
|
@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
if (str_contains($sysDescr, array('Cisco Internetwork Operating System Software', 'IOS (tm)', 'Cisco IOS Software', 'Global Site Selector')) && !str_contains($sysDescr, array('IOS-XE', 'X86_64_LINUX_IOSD'))) {
|
||||
$os = 'ios';
|
||||
}
|
Reference in New Issue
Block a user