View Issue Details

IDProjectCategoryView StatusLast Update
590RackTablesSNMPpublic2012-09-29 20:28
Reporterzeus Assigned Toadoom42  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.19.14 
Target Version0.20.1Fixed in Version0.20.1 
Summary590: SNMP sync for TPLink TL-SG5426 switch
Descriptionhelp to add SNMP sync for TPLink TL-SG5426 switch is needed ...

1. I added `TPLink%GPASS%TL-SG5426' to /index.php?page=chapter&chapter_no=12

2. I added to dictionary.php:
--- dictionary.php~ 2012-06-05 18:10:37.000000000 +0300
+++ dictionary.php 2012-08-08 17:05:53.000000000 +0300
@@ -1792,6 +1792,7 @@
        1707 => array ('chapter_id' => 13, 'dict_value' => 'Ubuntu%GSKIP%Ubuntu 11.10'),
        1708 => array ('chapter_id' => 13, 'dict_value' => 'Ubuntu%GSKIP%Ubuntu 12.04 LTS'),
        1709 => array ('chapter_id' => 13, 'dict_value' => '[[Debian%GSKIP%Debian 7.0 (wheezy) | http://debian.org/releases/wheezy/]]'),
+ 1710 => array ('chapter_id' => 12, 'dict_value' => 'TPLink%GPASS%TL-SG5426'),

 # 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

3. I added to snmp.php:
--- snmp.php.orig 2012-08-08 17:38:31.000000000 +0300
+++ snmp.php 2012-08-08 17:22:52.000000000 +0300
@@ -918,6 +918,15 @@
     'try_next_proc' => FALSE,
 );

+$iftable_processors['tplink-any'] = array
+(
+ 'pattern' => '@^.+ Port on unit .+ port ([[:digit:]]+)$@',
+ 'replacement' => 'e\\1',
+ 'dict_key' => '26',
+ 'label' => '\\1',
+ 'try_next_proc' => FALSE,
+);
+
 global $known_switches;
 $known_switches = array // key is system OID w/o "enterprises" prefix
 (
@@ -1583,6 +1592,12 @@
        'text' => 'DCS-7124S: 24 SFP+/10000',
        'processors' => array ('arista-any-SFP+', 'arista-management'),
        ),
+ '11863.6.10.58' => array
+ (
+ 'dict_key' => 1710,
+ 'text' => 'TL-SG5426: 26',
+ 'processors' => array ('tplink-any'),
+ ),
 );

4. the stuff mentioned in FAQ is attached
TagsNo tags attached.

Activities

zeus

zeus

2012-08-08 17:16

reporter  

adoom42

adoom42

2012-09-29 20:28

administrator   ~0000831

Thanks for the patch.

Issue History

Date Modified Username Field Change
2012-08-08 17:16 zeus New Issue
2012-08-08 17:16 zeus Status new => assigned
2012-08-08 17:16 zeus Assigned To => adoom42
2012-08-08 17:16 zeus File Added: TPLink-TL-SG5426.txt.bz2
2012-09-29 20:28 adoom42 Note Added: 0000831
2012-09-29 20:28 adoom42 Status assigned => closed
2012-09-29 20:28 adoom42 Resolution open => fixed
2012-09-29 20:28 adoom42 Product Version => 0.19.14
2012-09-29 20:28 adoom42 Fixed in Version => 0.20.1
2012-09-29 20:28 adoom42 Target Version => 0.20.1