View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
522 | RackTables | SNMP | public | 2012-02-08 09:29 | 2012-02-09 03:09 |
Reporter | Assigned To | adoom42 | |||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Product Version | 0.19.10 | ||||
Target Version | 0.20.0 | Fixed in Version | 0.20.0 | ||
Summary | 522: ProCurve J9452A Switch - Patch | ||||
Description | Created SNMP Patch for ProCurve J9452A Switch. | ||||
Tags | No tags attached. | ||||
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); |
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 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-02-08 09:29 |
|
New Issue | |
2012-02-08 09:29 |
|
Status | new => assigned |
2012-02-08 09:29 |
|
Assigned To | => adoom42 |
2012-02-08 09:30 |
|
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 |