View Issue Details

IDProjectCategoryView StatusLast Update
522RackTablesSNMPpublic2012-02-09 03:09
Reporteruser281Assigned Toadoom42  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product Version0.19.10 
Target Version0.20.0Fixed in Version0.20.0 
Summary522: ProCurve J9452A Switch - Patch
DescriptionCreated SNMP Patch for ProCurve J9452A Switch.
TagsNo tags attached.

Activities

2012-02-08 09:30

 

J9452A.patch (1,841 bytes)   
Index: wwwroot/inc/snmp.php
===================================================================
--- wwwroot/inc/snmp.php	(Revision 4948)
+++ wwwroot/inc/snmp.php	(Arbeitskopie)
@@ -471,6 +471,15 @@
 	'try_next_proc' => FALSE,
 );
 
+$iftable_processors['procurve-45-to-48-1000T'] = array
+(
+        'pattern' => '@^(45|48)$@',
+        'replacement' => '\\1',
+        'dict_key' => 24,
+        'label' => '\\1',
+        'try_next_proc' => FALSE,
+);
+
 $iftable_processors['procurve-27-to-28-1000SFP'] = array
 (
 	'pattern' => '@^(27|28)$@',
@@ -498,6 +507,15 @@
 	'try_next_proc' => FALSE,
 );
 
+$iftable_processors['procurve-49-to-52-combo-10000SFP'] = array
+(
+        'pattern' => '@^(49|50|51|52)$@',
+        'replacement' => '\\1',
+        'dict_key' => '9-1084',
+        'label' => '\\1',
+        'try_next_proc' => FALSE,
+);
+
 $iftable_processors['gbe2csfp-1-to-16'] = array
 (
 	'pattern' => '@^Downlink(\d+)$@',
@@ -1632,6 +1650,12 @@
 		'text' => 'J9089A: 48 RJ-45/10-100TX PoE + 2 1000T + 2 SFP-1000',
 		'processors' => array ('procurve-49-to-50-1000T', 'procurve-51-to-52-1000SFP', 'procurve-chassis-100TX'),
 	),
+	'11.2.3.7.11.105' => array
+    (
+         'dict_key' => 50011,
+         'text' => 'J9452A: 48 RJ-45/10-100-1000T + 2 SFP-10000',
+         'processors' => array ('procurve-45-to-48-1000T', 'procurve-49-to-52-combo-10000SFP', 'procurve-chassis-1000T'),
+    ),
 	'11.2.3.7.11.33.4.1.1' => array
 	(
 		'dict_key' => 1605,
@@ -1967,10 +1991,10 @@
 
 function updateStickerForCell ($cell, $attr_id, $new_value)
 {
-	if 
+	if
 	(
-		isset ($cell['attrs'][$attr_id]) 
-		and !strlen ($cell['attrs'][$attr_id]['value']) 
+		isset ($cell['attrs'][$attr_id])
+		and !strlen ($cell['attrs'][$attr_id]['value'])
 		and	strlen ($new_value)
 	)
 		commitUpdateAttrValue ($cell['id'], $attr_id, $new_value);
J9452A.patch (1,841 bytes)   
adoom42

adoom42

2012-02-09 03:09

administrator   ~0000583

Thanks for the patch. I made a few adjustments which you can see in r4950.

- added related switch models to the dictionary
- didn't include the procurve-45-to-48-1000T processor as it isn't necessary (also, it would only have caught ports 45 and 48)
- had it auto-create the OOM, console and AC-in ports

Issue History

Date Modified Username Field Change
2012-02-08 09:29 user281 New Issue
2012-02-08 09:29 user281 Status new => assigned
2012-02-08 09:29 user281 Assigned To => adoom42
2012-02-08 09:30 user281 File Added: J9452A.patch
2012-02-09 03:09 adoom42 Note Added: 0000583
2012-02-09 03:09 adoom42 Status assigned => closed
2012-02-09 03:09 adoom42 Resolution open => fixed
2012-02-09 03:09 adoom42 Fixed in Version => 0.20.0
2012-02-09 03:09 adoom42 Target Version => 0.20.0