mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
code cleanup/reformat os discovery files
git-svn-id: http://www.observium.org/svn/observer/trunk@1833 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Cisco Internetwork Operating System Software")) { $os = "ios"; }
|
||||
else if(strstr($sysDescr, "IOS (tm)")) { $os = "ios"; }
|
||||
else if(strstr($sysDescr, "Cisco IOS Software")) { $os = "ios"; }
|
||||
if (!$os)
|
||||
{
|
||||
if (strstr($sysDescr, "Cisco Internetwork Operating System Software")) { $os = "ios"; }
|
||||
else if (strstr($sysDescr, "IOS (tm)")) { $os = "ios"; }
|
||||
else if (strstr($sysDescr, "Cisco IOS Software")) { $os = "ios"; }
|
||||
|
||||
if(strstr($sysDescr, "IOS-XE")) { $os = "iosxe"; }
|
||||
if(strstr($sysDescr, "IOS XR")) { $os = "iosxr"; }
|
||||
|
||||
if (strstr($sysDescr, "IOS-XE")) { $os = "iosxe"; }
|
||||
if (strstr($sysDescr, "IOS XR")) { $os = "iosxr"; }
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user