View Issue Details

IDProjectCategoryView StatusLast Update
743RackTablesSNMPpublic2013-02-24 21:23
Reporteraquarius Assigned Toadoom42  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version0.20.3 
Target Version0.20.4Fixed in Version0.20.4 
Summary743: Unknown OID 3955.6.5024
DescriptionRacktables does not know how to get data from Linksys SRW224G4 switch.
Additional InformationI've written a patch to 0.20.3, which enables desired functionality
TagsNo tags attached.

Activities

aquarius

aquarius

2013-02-11 23:34

reporter  

racktables-srw224g4.patch (2,677 bytes)   
--- wwwroot/inc/dictionary.php	2012-12-19 17:30:47.000000000 +0100
+++ wwwroot/inc/dictionary.php	2013-02-09 16:31:37.280385113 +0100
@@ -1970,6 +1970,7 @@
 	1884 => array ('chapter_id' => 18, 'dict_value' => '[[Infortrend%GPASS%ES S16S-J1000-S1 | http://www.infortrend.com/global/products/models/ES%20S16S-J1000-S1]]'),
 	1885 => array ('chapter_id' => 18, 'dict_value' => '[[Infortrend%GPASS%ES S12S-J1000-G | http://www.infortrend.com/global/products/models/ES%20S12S-J1000-G]]'),
 	1886 => array ('chapter_id' => 18, 'dict_value' => '[[Infortrend%GPASS%ES S12S-J1002-R | http://www.infortrend.com/global/products/models/ES%20S12S-J1002-R]]'),
+	1920 => array ('chapter_id' => 12, 'dict_value' => 'Linksys%GPASS%SRW224G4'),
 # Any new "default" dictionary records must go above this line (i.e., with
 # dict_key code less, than 50000). This is necessary to keep AUTO_INCREMENT
 # and dictionary updates working properly.
--- wwwroot/inc/snmp.php	2012-12-19 17:30:47.000000000 +0100
+++ wwwroot/inc/snmp.php	2013-02-11 23:23:21.803393186 +0100
@@ -34,6 +34,15 @@
 	'try_next_proc' => FALSE,
 );
 
+$iftable_processors['generic-e-any-100TX'] = array
+(
+	'pattern' => '@^e(\d+)$@',
+	'replacement' => 'e\\1',
+	'dict_key' => 19,
+	'label' => '\\1',
+	'try_next_proc' => FALSE,
+);
+
 $iftable_processors['generic-gi-any-1000T'] = array
 (
 	'pattern' => '@^gi(\d+)$@',
@@ -52,6 +61,33 @@
 	'try_next_proc' => FALSE,
 );
 
+$iftable_processors['generic-g-1-to-2-1000T'] = array
+(
+	'pattern' => '@^g(1|2)$@',
+	'replacement' => 'g\\1',
+	'dict_key' => 24,
+	'label' => 'G\\1',
+	'try_next_proc' => TRUE,
+);
+
+$iftable_processors['generic-g-3-to-4-combo-1000SFP'] = array
+(
+	'pattern' => '@^g(3|4)$@',
+	'replacement' => 'g\\1',
+	'dict_key' => '4-1077',
+	'label' => 'G\\1',
+	'try_next_proc' => TRUE,
+);
+
+$iftable_processors['generic-g-3-to-4-combo-1000T'] = array
+(
+	'pattern' => '@^g(3|4)$@',
+	'replacement' => 'g\\1',
+	'dict_key' => '1-24',
+	'label' => 'G\\1',
+	'try_next_proc' => TRUE,
+);
+
 $iftable_processors['generic-gi-3-to-4-combo-1000SFP'] = array
 (
 	'pattern' => '@^gi(3|4)$@',
@@ -2368,6 +2404,13 @@
 		'text' => 'FS750T2: 48 RJ-45/10-100TX + 2 combo-gig',
 		'processors' => array ('netgear-49-to-50-combo-1000SFP', 'netgear-49-to-50-combo-1000T', 'netgear-any-100TX'),
 	),
+	'3955.6.5024' => array
+	(
+		'dict_key' => 1920,
+		'text' => 'Linksys SRW224G4: 24-port 10/100 + 4-Port Gigabit Switch with WebView',
+		'processors' => array ('generic-g-1-to-2-1000T', 'generic-g-3-to-4-combo-1000SFP', 'generic-g-3-to-4-combo-1000T', 'generic-e-any-100TX'),
+		'ifDescrOID' => 'ifName',
+	),
 	'3955.6.1.2048.1' => array
 	(
 		'dict_key' => 1624,
racktables-srw224g4.patch (2,677 bytes)   
adoom42

adoom42

2013-02-24 21:23

administrator   ~0001159

The support will be available in 0.20.4. FYI, the dictionary ID used is 1966 as 1920 was already used.

Thanks for the patch.

Issue History

Date Modified Username Field Change
2013-02-11 23:34 aquarius New Issue
2013-02-11 23:34 aquarius Status new => assigned
2013-02-11 23:34 aquarius Assigned To => adoom42
2013-02-11 23:34 aquarius File Added: racktables-srw224g4.patch
2013-02-24 21:23 adoom42 Note Added: 0001159
2013-02-24 21:23 adoom42 Status assigned => closed
2013-02-24 21:23 adoom42 Resolution open => fixed
2013-02-24 21:23 adoom42 Fixed in Version => 0.20.4
2013-02-24 21:23 adoom42 Target Version => 0.20.4