racktables-0.20.6-dell-powerconnect-81xx-snmp.patch (2,658 bytes)
diff -ur RackTables-0.20.6.orig/wwwroot/inc/dictionary.php RackTables-0.20.6/wwwroot/inc/dictionary.php
--- RackTables-0.20.6.orig/wwwroot/inc/dictionary.php 2014-01-21 12:02:37.000000000 -0800
+++ RackTables-0.20.6/wwwroot/inc/dictionary.php 2014-01-21 12:05:57.000000000 -0800
@@ -2174,6 +2174,8 @@
2088 => array ('chapter_id' => 12, 'dict_value' => 'Huawei%GPASS%CE5810-24T4S-EI'),
2089 => array ('chapter_id' => 12, 'dict_value' => 'Pica8%GPASS%P-3780'),
2090 => array ('chapter_id' => 12, 'dict_value' => 'Pica8%GPASS%P-3922'),
+ 2091 => array ('chapter_id' => 12, 'dict_value' => 'Dell PowerConnect%GPASS%8132'),
+ 2092 => array ('chapter_id' => 12, 'dict_value' => 'Dell PowerConnect%GPASS%8164'),
# 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
diff -ur RackTables-0.20.6.orig/wwwroot/inc/snmp.php RackTables-0.20.6/wwwroot/inc/snmp.php
--- RackTables-0.20.6.orig/wwwroot/inc/snmp.php 2014-01-21 12:02:37.000000000 -0800
+++ RackTables-0.20.6/wwwroot/inc/snmp.php 2014-01-21 12:30:12.000000000 -0800
@@ -1736,6 +1736,33 @@
'try_next_proc' => FALSE,
);
+$iftable_processors['dell-81xx-any-10GbT'] = array
+(
+ 'pattern' => '@^Unit: (\d+) Slot: 0 Port: (\d+) 10G - Level$@',
+ 'replacement' => 'te\\1/0/\\2',
+ 'dict_key' => '1-1642',
+ 'label' => 'te\\1/0/\\2',
+ 'try_next_proc' => FALSE,
+);
+
+$iftable_processors['dell-81xx-40GbT-QSFP'] = array
+(
+ 'pattern' => '@^Unit: (\d+) Slot: 1 Port: (\d+) 40G - Level$@',
+ 'replacement' => 'fo\\1/1/\\2',
+ 'dict_key' => '10-1588',
+ 'label' => 'fo\\1/1/\\2',
+ 'try_next_proc' => FALSE,
+);
+
+$iftable_processors['dell-81xx-10GbT-SFP-module'] = array
+(
+ 'pattern' => '@^Unit: (\d+) Slot: 1 Port: (\d+) 10G - Level$@',
+ 'replacement' => '\\1/1/\\2',
+ 'dict_key' => '9-1084',
+ 'label' => 'te\\1/1/\\2',
+ 'try_next_proc' => FALSE,
+);
+
global $known_switches;
$known_switches = array // key is system OID w/o "enterprises" prefix
(
@@ -2963,6 +2990,19 @@
'text' => 'DCS-7124S: 24 SFP+/10000',
'processors' => array ('arista-any-SFP+', 'arista-management'),
),
+ '674.10895.3042' => array
+ (
+ 'dict_key' => 2091,
+ 'text' => 'PowerConnect 8132',
+ 'processors' => array ('dell-81xx-any-10GbT','dell-81xx-40GbT-QSFP','dell-81xx-10GbT-SFP-module'),
+ ),
+ '674.10895.3045' => array
+ (
+ 'dict_key' => 2092,
+ 'text' => 'PowerConnect 8164',
+ 'processors' => array ('dell-81xx-any-10GbT','dell-81xx-40GbT-QSFP','dell-81xx-10GbT-SFP-module'),
+ ),
+
);
global $swtype_pcre;