mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
detect more speedtouch, basic detection of huawei vrp os
git-svn-id: http://www.observium.org/svn/observer/trunk@1451 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
BIN
html/images/os/huawei.png
Normal file
BIN
html/images/os/huawei.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@@ -3,8 +3,9 @@
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "Cisco Internetwork Operating System Software")) { $os = "ios"; }
|
||||
if(strstr($sysDescr, "IOS (tm)")) { $os = "ios"; }
|
||||
if(strstr($sysDescr, "Cisco IOS 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"; }
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
if(!$os) {
|
||||
|
||||
if(strpos($sysDescr, "TG585v7") !== FALSE) { $os = "speedtouch"; }
|
||||
else if(strpos($sysDescr, "SpeedTouch 5") !== FALSE) { $os = "speedtouch"; }
|
||||
else if(strpos($sysDescr, "SpeedTouch ") !== FALSE) { $os = "speedtouch"; }
|
||||
else if (preg_match("/^ST\d/", $sysDescr)) { $os = "speedtouch"; }
|
||||
|
||||
}
|
||||
|
||||
10
includes/discovery/os/vrp.inc.php
Normal file
10
includes/discovery/os/vrp.inc.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if(strstr($sysDescr, "VRP (R) Software")) { $os = "vrp"; }
|
||||
else if(strstr($sysDescr, "VRP Software Version")) { $os = "vrp"; }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -86,6 +86,11 @@ $config['os']['catos']['text'] = "Cisco CatOS";
|
||||
$config['os']['catos']['ifname'] = 1;
|
||||
$config['os']['catos']['type'] = "network";
|
||||
|
||||
$config['os']['vrp']['group'] = "vrp";
|
||||
$config['os']['vrp']['text'] = "Huawei VRP";
|
||||
$config['os']['vrp']['type'] = "network";
|
||||
$config['os']['vrp']['icon'] = "huawei";
|
||||
|
||||
$config['os']['junos']['text'] = "Juniper JunOS";
|
||||
$config['os']['junos']['type'] = "network";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user