mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
3f691e9d27
git-svn-id: http://www.observium.org/svn/observer/trunk@1619 61d68cd4-352d-0410-923a-c4978735b2b8
17 lines
490 B
PHP
Executable File
17 lines
490 B
PHP
Executable File
<?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);
|
|
|
|
|
|
?>
|