mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update OS version parsing for IOS XE Denali and Everset (#7073)
This commit is contained in:
committed by
Neil Lathwood
parent
66008a0fd5
commit
890164c737
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (preg_match('/^Cisco IOS Software, .+? Software(\, )?([\s\w\d]+)? \([^\-]+-([\w\d]+)-\w\), Version ([^,]+)/', $poll_device['sysDescr'], $regexp_result)) {
|
||||
if (preg_match('/^Cisco IOS Software.*?, .+? Software(\, )?([\s\w\d]+)? \([^\-]+-([\w\d]+)-\w\), Version ([^,]+)/', $poll_device['sysDescr'], $regexp_result)) {
|
||||
$features = $regexp_result[3];
|
||||
$version = $regexp_result[4];
|
||||
$hardware = $regexp_result[2];
|
||||
|
Reference in New Issue
Block a user