mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
17 lines
490 B
PHP
17 lines
490 B
PHP
|
<?php
|
||
|
|
||
|
if(strstr($ciscomodel, "OID")){ unset($ciscomodel); }
|
||
|
if(!strstr($ciscomodel, " ") && strlen($ciscomodel) >= '3') {
|
||
|
$hardware = $ciscomodel;
|
||
|
}
|
||
|
|
||
|
$sysDescr = str_replace("IOS (tm)", "IOS (tm),", $sysDescr);
|
||
|
list(,$features,$version) = explode(",", $sysDescr);
|
||
|
$version = str_replace("Copyright", "", $version);
|
||
|
list(,$version,) = explode(" ", trim($version));
|
||
|
list(,$features) = explode("(", $features);
|
||
|
list(,$features) = explode("-", $features);
|
||
|
|
||
|
|
||
|
?>
|