15 lines
392 B
PHP
Raw Normal View History

<?php
2015-07-13 20:10:26 +02:00
if (preg_match('/^Cisco IOS XR Software \(Cisco ([^\)]+)\),\s+Version ([^\[]+)\[([^\]]+)\]/', $poll_device['sysDescr'], $regexp_result)) {
$hardware = $regexp_result[1];
$features = $regexp_result[3];
$version = $regexp_result[2];
}
2015-07-13 20:10:26 +02:00
else {
// It is not an IOS-XR ... What should we do ?
}
$serial = get_main_serial($device);
2015-07-13 20:10:26 +02:00
echo "\n".$poll_device['sysDescr']."\n";