Updated Cisco mibs and added another regex for different cisco products

This commit is contained in:
laf
2015-04-15 10:15:46 +01:00
parent dd9148b085
commit 7ef8e1f856
3 changed files with 123 additions and 15 deletions
+3 -3
View File
@@ -5,10 +5,10 @@ if (preg_match('/^Cisco IOS Software, .+? Software \([^\-]+-([\w\d]+)-\w\), Vers
$features = $regexp_result[1];
$version = $regexp_result[2];
}
elseif( false )
elseif (preg_match('/^Cisco IOS Software, .+? Software([\,\w\d]*) \([^\-]+-([\w\d]+)-\w\), Version ([^,]+)/', $poll_device['sysDescr'], $regexp_result))
{
# Placeholder
# Other regexp for other type of string
$features = $regexp_result[2];
$version = $regexp_result[3];
}
echo("\n".$poll_device['sysDescr']."\n");