2012-03-20 16:50:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (preg_match('/^Cisco IOS XR Software \(Cisco ([^\)]+)\),\s+Version ([^\[]+)\[([^\]]+)\]/', $poll_device['sysDescr'], $regexp_result))
|
|
|
|
{
|
2012-04-05 16:37:46 +00:00
|
|
|
$hardware = $regexp_result[1];
|
|
|
|
$features = $regexp_result[3];
|
|
|
|
$version = $regexp_result[2];
|
2012-03-20 16:50:16 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2012-04-05 16:37:46 +00:00
|
|
|
# It is not an IOS-XR ... What should we do ?
|
2012-03-20 16:50:16 +00:00
|
|
|
}
|
|
|
|
|
2015-06-18 22:20:50 +01:00
|
|
|
$serial = get_main_serial($device);
|
|
|
|
|
2012-03-20 16:50:16 +00:00
|
|
|
echo("\n".$poll_device['sysDescr']."\n");
|
|
|
|
|