Huawei VRP os detection #1931

Closed
ugenk opened this Issue Sep 19, 2015 · 1 comment

Projects

None yet

2 participants

@ugenk
ugenk commented Sep 19, 2015

Hello, we've issued problem with autodetecting our Huawei S8505 switch
Here it's snmpwalk

iso.3.6.1.2.1.1.1.0 = STRING: "Huawei Versatile Routing Platform Software, Software Version 3.10, Release 1650
Quidway S8505-EI
Copyright(c) 1998-2008 Huawei Technologies Co., Ltd. All rights reserved."
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.2011.2.23.32
iso.3.6.1.2.1.1.3.0 = Timeticks: (486482012) 56 days, 7:20:20.12
iso.3.6.1.2.1.1.4.0 = STRING: "Huawei Technologies Co., Ltd."

Problem can be fixed simply:

--- /tmp/librenms/./includes/discovery/os/vrp.inc.php   2015-09-19 10:32:43.397374010 +0300
+++ ./includes/discovery/os/vrp.inc.php 2015-09-19 10:24:59.284997600 +0300
@@ -9,7 +9,7 @@
     }
     if (stristr($sysDescr, 'Software Version VRP')) {
         $os = 'vrp';
-    } if (stristr($sysDescr, 'Versatile Routing Platform Software Version')) {
+    } if (stristr($sysDescr, 'Versatile Routing Platform Software')) {
         $os = 'vrp';
     }
 }
@Rosiak Rosiak self-assigned this Sep 19, 2015
@Rosiak Rosiak referenced this issue Sep 19, 2015
Merged

fix issue-1931 #1935

@Rosiak
Contributor
Rosiak commented Sep 20, 2015

merged

@Rosiak Rosiak closed this Sep 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment