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:
Tom Laermans
2010-07-21 00:30:37 +00:00
parent 63956f5f1b
commit 75da043061
5 changed files with 19 additions and 3 deletions

BIN
html/images/os/huawei.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -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"; }

View File

@@ -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"; }
}

View 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"; }
}
?>

View File

@@ -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";