SNMP: fix dict_key for HP 1910-24G
[racktables] / wwwroot / inc / snmp.php
CommitLineData
2ffd5a2a
DO
1<?php
2
cddbb9fd
DO
3# This file is a part of RackTables, a datacenter and server room management
4# framework. See accompanying file "COPYING" for the full copyright and
5# licensing information.
6
536e7323 7global $iftable_processors;
74aee2dc 8$iftable_processors = array();
6be06cbb 9
d7d68b9b
AD
10$iftable_processors['generic-e-any-100TX'] = array
11(
12 'pattern' => '@^e(\d+)$@',
13 'replacement' => 'e\\1',
14 'dict_key' => 19,
15 'label' => '\\1',
16 'try_next_proc' => FALSE,
17);
18
b0021c43
AD
19$iftable_processors['generic-fa-any-100TX'] = array
20(
21 'pattern' => '@^fa(\d+)$@',
22 'replacement' => 'fa\\1',
23 'dict_key' => 19,
869d4ff4 24 'label' => '\\1',
b0021c43
AD
25 'try_next_proc' => FALSE,
26);
27
c23734f0
AD
28$iftable_processors['generic-g12-and-g24-combo-1000SFP'] = array
29(
30 'pattern' => '@^g(12|24)$@',
31 'replacement' => 'g\\1',
32 'dict_key' => '4-1077',
33 'label' => 'g\\1',
34 'try_next_proc' => TRUE,
35);
36
8595dfd0
AD
37$iftable_processors['generic-g45-to-g48-combo-1000SFP'] = array
38(
39 'pattern' => '@^g(45|46|47|48)$@',
40 'replacement' => 'g\\1',
41 'dict_key' => '4-1077',
42 'label' => 'g\\1',
43 'try_next_proc' => TRUE,
44);
45
46$iftable_processors['generic-g-any-1000T'] = array
47(
48 'pattern' => '@^g(\d+)$@',
49 'replacement' => 'g\\1',
50 'dict_key' => 24,
73c5d377 51 'label' => '\\1',
8595dfd0
AD
52 'try_next_proc' => FALSE,
53);
54
d7d68b9b
AD
55$iftable_processors['generic-g-1-to-2-1000T'] = array
56(
57 'pattern' => '@^g(1|2)$@',
58 'replacement' => 'g\\1',
59 'dict_key' => 24,
60 'label' => 'G\\1',
61 'try_next_proc' => TRUE,
62);
63
64$iftable_processors['generic-g-3-to-4-combo-1000SFP'] = array
65(
66 'pattern' => '@^g(3|4)$@',
67 'replacement' => 'g\\1',
68 'dict_key' => '4-1077',
69 'label' => 'G\\1',
70 'try_next_proc' => TRUE,
71);
72
73$iftable_processors['generic-g-3-to-4-combo-1000T'] = array
74(
75 'pattern' => '@^g(3|4)$@',
76 'replacement' => 'g\\1',
77 'dict_key' => '1-24',
78 'label' => 'G\\1',
79 'try_next_proc' => TRUE,
80);
81
40b1e115
AD
82$iftable_processors['generic-gi-any-1000T'] = array
83(
84 'pattern' => '@^gi(\d+)$@',
85 'replacement' => 'gi\\1',
86 'dict_key' => 24,
73c5d377 87 'label' => '\\1',
40b1e115
AD
88 'try_next_proc' => FALSE,
89);
90
b0021c43
AD
91$iftable_processors['generic-gi-1-to-2-1000T'] = array
92(
93 'pattern' => '@^gi(\d+)$@',
94 'replacement' => 'gi\\1',
95 'dict_key' => 24,
73c5d377 96 'label' => 'G\\1',
b0021c43
AD
97 'try_next_proc' => FALSE,
98);
99
1329ef2f
RD
100$iftable_processors['generic-gi-1-to-2-combo-1000SFP'] = array
101(
102 'pattern' => '@^gi(1|2)$@',
103 'replacement' => 'gi\\1',
104 'dict_key' => '4-1077',
105 'label' => 'G\\1',
106 'try_next_proc' => TRUE,
107);
108
b0021c43
AD
109$iftable_processors['generic-gi-3-to-4-combo-1000SFP'] = array
110(
111 'pattern' => '@^gi(3|4)$@',
112 'replacement' => 'gi\\1',
113 'dict_key' => '4-1077',
73c5d377 114 'label' => 'G\\1',
b0021c43
AD
115 'try_next_proc' => TRUE,
116);
117
118$iftable_processors['generic-gi-3-to-4-combo-1000T'] = array
119(
120 'pattern' => '@^gi(3|4)$@',
121 'replacement' => 'gi\\1',
122 'dict_key' => '1-24',
73c5d377 123 'label' => 'G\\1',
40b1e115
AD
124 'try_next_proc' => FALSE,
125);
126
127$iftable_processors['generic-gi-9-to-10-combo-1000SFP'] = array
128(
129 'pattern' => '@^gi(9|10)$@',
130 'replacement' => 'gi\\1',
131 'dict_key' => '4-1077',
73c5d377 132 'label' => 'G\\1',
40b1e115
AD
133 'try_next_proc' => TRUE,
134);
135
136$iftable_processors['generic-gi-9-to-10-combo-1000T'] = array
137(
138 'pattern' => '@^gi(9|10)$@',
139 'replacement' => 'gi\\1',
140 'dict_key' => '1-24',
73c5d377 141 'label' => 'G\\1',
40b1e115
AD
142 'try_next_proc' => FALSE,
143);
144
145$iftable_processors['generic-gi-51-to-52-combo-1000SFP'] = array
146(
147 'pattern' => '@^gi(51|52)$@',
148 'replacement' => 'gi\\1',
149 'dict_key' => '4-1077',
73c5d377 150 'label' => 'G\\1',
40b1e115
AD
151 'try_next_proc' => TRUE,
152);
153
154$iftable_processors['generic-gi-51-to-52-combo-1000T'] = array
155(
156 'pattern' => '@^gi(51|52)$@',
157 'replacement' => 'gi\\1',
158 'dict_key' => '1-24',
73c5d377 159 'label' => 'G\\1',
b0021c43
AD
160 'try_next_proc' => FALSE,
161);
162
78cfe89b
AD
163$iftable_processors['generic-port-any-1000T'] = array
164(
165 'pattern' => '@^port([[:digit:]]+)$@',
166 'replacement' => '\\1',
167 'dict_key' => 24,
168 'label' => '\\1',
169 'try_next_proc' => FALSE,
170);
171
f7e717e9
AD
172$iftable_processors['generic-any-1000T'] = array
173(
174 'pattern' => '@^([[:digit:]]+)$@',
175 'replacement' => '\\1',
176 'dict_key' => 24,
177 'label' => '\\1',
178 'try_next_proc' => FALSE,
179);
180
181$iftable_processors['generic-21-to-24-combo-1000SFP'] = array
182(
183 'pattern' => '@^(21|22|23|24)$@',
184 'replacement' => '\\1',
185 'dict_key' => '4-1077',
186 'label' => '\\1',
187 'try_next_proc' => TRUE,
188);
189
44277e87
AD
190$iftable_processors['catalyst-any-10TX'] = array
191(
192 'pattern' => '@^([[:digit:]]+)$@',
193 'replacement' => '\\1',
194 'dict_key' => 18,
195 'label' => '\\1x',
196 'try_next_proc' => FALSE,
197);
198
47a523af
AD
199$iftable_processors['catalyst-any-100TX'] = array
200(
201 'pattern' => '@^FastEthernet(\d+)$@',
202 'replacement' => 'fa\\1',
203 'dict_key' => 19,
204 'label' => 'fa\\1',
205 'try_next_proc' => FALSE,
206);
207
44277e87
AD
208$iftable_processors['catalyst-a-to-b-100TX'] = array
209(
210 'pattern' => '@^(A|B)$@',
211 'replacement' => '\\1',
212 'dict_key' => 19,
213 'label' => '\\1x',
214 'try_next_proc' => FALSE,
215);
216
47a523af
AD
217$iftable_processors['catalyst-any-1000T'] = array
218(
219 'pattern' => '@^GigabitEthernet(\d+)$@',
220 'replacement' => 'gi\\1',
221 'dict_key' => 24,
222 'label' => 'gi\\1',
223 'try_next_proc' => FALSE,
224);
225
ce4f4d96 226$iftable_processors['catalyst-9-to-12-combo-1000SFP'] = array
bc8b21f0
AD
227(
228 'pattern' => '@^GigabitEthernet(9|10|11|12)$@',
229 'replacement' => 'gi\\1',
230 'dict_key' => '4-1077',
231 'label' => 'gi\\1',
232 'try_next_proc' => TRUE,
233);
234
235$iftable_processors['catalyst-9-to-12-1000T'] = array
236(
237 'pattern' => '@^GigabitEthernet(9|10|11|12)$@',
238 'replacement' => 'gi\\1',
239 'dict_key' => 24,
240 'label' => 'gi\\1',
241 'try_next_proc' => FALSE,
242);
243
cbc30061 244$iftable_processors['catalyst-chassis-mgmt'] = array
6be06cbb 245(
cbc30061
DO
246 'pattern' => '@^FastEthernet([[:digit:]])$@',
247 'replacement' => 'fa\\1',
248 'dict_key' => '1-19',
6be06cbb
DO
249 'label' => 'mgmt',
250 'try_next_proc' => FALSE,
251);
252
38bd461c
AA
253$iftable_processors['catalyst-chassis-25-to-26-1000SFP'] = array
254(
255 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(25|26)$@',
256 'replacement' => 'gi\\1\\2',
257 'dict_key' => '4-1077',
258 'label' => '\\2X',
259 'try_next_proc' => FALSE,
260);
261
6be06cbb 262$iftable_processors['catalyst-chassis-any-100TX'] = array
74aee2dc 263(
6be06cbb
DO
264 'pattern' => '@^FastEthernet([[:digit:]]+/)?([[:digit:]]+)$@',
265 'replacement' => 'fa\\1\\2',
74aee2dc 266 'dict_key' => 19,
6be06cbb 267 'label' => '\\2X',
56a797ef
DO
268 'try_next_proc' => FALSE,
269);
270
6be06cbb 271$iftable_processors['catalyst-chassis-25-to-26-100FX/MT-RJ'] = array
56a797ef 272(
6be06cbb
DO
273 'pattern' => '@^FastEthernet([[:digit:]]+/)?(25|26)$@',
274 'replacement' => 'fa\\1\\2',
8920f7f5 275 'dict_key' => 1195,
6be06cbb
DO
276 'label' => '\\2',
277 'try_next_proc' => FALSE,
278);
279
280$iftable_processors['catalyst-chassis-any-1000T'] = array
281(
f0255d01 282 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?([[:digit:]]+)$@',
6be06cbb
DO
283 'replacement' => 'gi\\1\\2',
284 'dict_key' => 24,
285 'label' => '\\2X',
56a797ef 286 'try_next_proc' => FALSE,
74aee2dc
DO
287);
288
6be06cbb 289$iftable_processors['catalyst-chassis-uplinks-1000T'] = array
74aee2dc 290(
6be06cbb
DO
291 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?([[:digit:]]+)$@',
292 'replacement' => 'gi\\1\\2',
74aee2dc 293 'dict_key' => 24,
6be06cbb 294 'label' => '\\2',
56a797ef
DO
295 'try_next_proc' => FALSE,
296);
297
8a4bee49
DO
298$iftable_processors['catalyst-chassis-uplinks-1000SX'] = array
299(
300 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?([[:digit:]]+)$@',
301 'replacement' => 'gi\\1\\2',
302 'dict_key' => '1-1202', // Gig-SX hardwired
303 'label' => '\\2',
304 'try_next_proc' => FALSE,
305);
306
6be06cbb 307$iftable_processors['catalyst-chassis-any-1000SFP'] = array
74aee2dc 308(
6be06cbb
DO
309 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?([[:digit:]]+)$@',
310 'replacement' => 'gi\\1\\2',
8536e20a 311 'dict_key' => '4-1077',
6be06cbb 312 'label' => '\\2',
56a797ef
DO
313 'try_next_proc' => FALSE,
314);
315
6be06cbb 316$iftable_processors['catalyst-chassis-any-1000GBIC'] = array
56a797ef 317(
6be06cbb
DO
318 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?([[:digit:]]+)$@',
319 'replacement' => 'gi\\1\\2',
8536e20a 320 'dict_key' => '3-1078',
6be06cbb 321 'label' => '\\2',
56a797ef
DO
322 'try_next_proc' => FALSE,
323);
324
7e87a291
DO
325$iftable_processors['catalyst-chassis-1-to-2-combo-1000SFP'] = array
326(
327 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(1|2)$@',
328 'replacement' => 'gi\\1\\2',
329 'dict_key' => '4-1077',
330 'label' => '\\2',
331 'try_next_proc' => TRUE,
332);
333
712010be
AA
334$iftable_processors['catalyst-chassis-1-to-2-1000SFP'] = array
335(
336 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(1|2)$@',
337 'replacement' => 'gi\\1\\2',
338 'dict_key' => '4-1077',
339 'label' => '\\2',
340 'try_next_proc' => FALSE,
341);
342
d6d3dbea
M
343$iftable_processors['catalyst-chassis-1-to-2-combo-1000T'] = array (
344 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(1|2)$@',
345 'replacement' => 'gi\\1\\2',
346 'dict_key' => 24,
347 'label' => '\\2',
348 'try_next_proc' => TRUE,
349);
350
a048e8fc
DO
351$iftable_processors['catalyst-chassis-8-combo-1000SFP'] = array
352(
353 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(8)$@',
354 'replacement' => 'gi\\1\\2',
355 'dict_key' => '4-1077',
356 'label' => '\\2',
357 'try_next_proc' => TRUE,
358);
359
6be06cbb 360$iftable_processors['catalyst-chassis-21-to-24-combo-1000SFP'] = array
56a797ef 361(
6be06cbb
DO
362 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(21|22|23|24)$@',
363 'replacement' => 'gi\\1\\2',
8536e20a 364 'dict_key' => '4-1077',
6be06cbb 365 'label' => '\\2',
56a797ef
DO
366 'try_next_proc' => TRUE,
367);
368
6be06cbb 369$iftable_processors['catalyst-chassis-45-to-48-combo-1000SFP'] = array
56a797ef 370(
6be06cbb
DO
371 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(45|46|47|48)$@',
372 'replacement' => 'gi\\1\\2',
8536e20a 373 'dict_key' => '4-1077',
6be06cbb 374 'label' => '\\2',
56a797ef
DO
375 'try_next_proc' => TRUE,
376);
377
6be06cbb 378$iftable_processors['catalyst-chassis-uplinks-10000X2'] = array
56a797ef 379(
6be06cbb
DO
380 'pattern' => '@^TenGigabitEthernet([[:digit:]]+/)?([[:digit:]]+)$@',
381 'replacement' => 'te\\1\\2',
8536e20a 382 'dict_key' => '6-1080',
6be06cbb 383 'label' => '\\2',
56a797ef 384 'try_next_proc' => FALSE,
74aee2dc
DO
385);
386
b475f795
DO
387$iftable_processors['catalyst-chassis-uplinks-10000SFP+'] = array
388(
389 'pattern' => '@^TenGigabitEthernet([[:digit:]]+/)?([[:digit:]]+)$@',
390 'replacement' => 'te\\1\\2',
391 'dict_key' => '9-1084',
392 'label' => '\\2',
393 'try_next_proc' => FALSE,
394);
395
6be06cbb 396$iftable_processors['catalyst-chassis-25-to-28-1000SFP'] = array
74aee2dc 397(
6be06cbb
DO
398 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(25|26|27|28)$@',
399 'replacement' => 'gi\\1\\2',
8536e20a 400 'dict_key' => '4-1077',
6be06cbb 401 'label' => '\\2',
56a797ef 402 'try_next_proc' => FALSE,
74aee2dc
DO
403);
404
6be06cbb 405$iftable_processors['catalyst-chassis-49-to-52-1000SFP'] = array
74aee2dc 406(
6be06cbb
DO
407 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(49|50|51|52)$@',
408 'replacement' => 'gi\\1\\2',
8536e20a 409 'dict_key' => '4-1077',
6be06cbb 410 'label' => '\\2',
56a797ef 411 'try_next_proc' => FALSE,
74aee2dc
DO
412);
413
71d6b313 414$iftable_processors['catalyst-blade-13-to-16-1000SFP'] = array
74aee2dc 415(
6be06cbb
DO
416 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(13|14|15|16)$@',
417 'replacement' => 'gi\\1\\2',
8536e20a 418 'dict_key' => '4-1077',
6be06cbb 419 'label' => '\\2',
56a797ef 420 'try_next_proc' => FALSE,
74aee2dc
DO
421);
422
71d6b313 423$iftable_processors['catalyst-blade-21-to-24-1000SFP'] = array
74aee2dc 424(
6be06cbb
DO
425 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(21|22|23|24)$@',
426 'replacement' => 'gi\\1\\2',
8536e20a 427 'dict_key' => '4-1077',
6be06cbb 428 'label' => '\\2',
56a797ef 429 'try_next_proc' => FALSE,
74aee2dc
DO
430);
431
71d6b313
DO
432$iftable_processors['catalyst-blade-11-to-12-1000T'] = array
433(
434 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(11|12)$@',
435 'replacement' => 'gi\\1\\2',
436 'dict_key' => '1-24',
437 'label' => '\\2',
438 'try_next_proc' => FALSE,
439);
440
441$iftable_processors['catalyst-blade-17-to-20-1000T'] = array
442(
443 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(17|18|19|20)$@',
444 'replacement' => 'gi\\1\\2',
445 'dict_key' => '1-24',
446 'label' => '\\2',
447 'try_next_proc' => FALSE,
448);
449
450$iftable_processors['catalyst-blade-any-bp/1000T'] = array
451(
452 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?([[:digit:]]+)$@',
453 'replacement' => 'gi\\1\\2',
454 'dict_key' => '1-1087',
455 'label' => '',
456 'try_next_proc' => FALSE,
457);
458
d6d3dbea 459$iftable_processors['catalyst-9-to-10-combo-1000SFP'] = array
86d614c3 460(
d6d3dbea 461 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(9|10)$@',
86d614c3 462 'replacement' => 'gi\\1\\2',
d6d3dbea 463 'dict_key' => '4-1077',
86d614c3 464 'label' => '\\2',
d6d3dbea 465 'try_next_proc' => TRUE,
86d614c3
DO
466);
467
7e87a291
DO
468$iftable_processors['catalyst-1-to-10-1000T'] = array
469(
470 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(1|2|3|4|5|6|7|8|9|10)$@',
471 'replacement' => 'gi\\1\\2',
472 'dict_key' => '1-24',
473 'label' => '\\2',
474 'try_next_proc' => FALSE,
475);
476
477$iftable_processors['catalyst-11-to-12-GBIC'] = array
478(
479 'pattern' => '@^GigabitEthernet([[:digit:]]+/)?(11|12)$@',
480 'replacement' => 'gi\\1\\2',
481 'dict_key' => '3-1078',
482 'label' => '\\2',
483 'try_next_proc' => FALSE,
484);
485
38c9bb20
DO
486$iftable_processors['catalyst-stack-any-1000T'] = array
487(
488 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(\d+)$@',
489 'replacement' => 'gi\\1/\\2/\\3',
490 'dict_key' => '1-24',
491 'label' => 'unit \\1 port \\3',
492 'try_next_proc' => FALSE,
493);
494
b652782a
AA
495$iftable_processors['catalyst-stack-any-100TX'] = array
496(
497 'pattern' => '@^FastEthernet(\d+)/(\d+)/(\d+)$@',
498 'replacement' => 'fa\\1/\\2/\\3',
499 'dict_key' => 19,
500 'label' => 'unit \\1 port \\3',
501 'try_next_proc' => FALSE,
502);
503
38c9bb20
DO
504$iftable_processors['catalyst-stack-25-to-28-SFP'] = array
505(
506 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(25|26|27|28)$@',
507 'replacement' => 'gi\\1/\\2/\\3',
508 'dict_key' => '4-1077',
509 'label' => 'unit \\1 port \\3',
510 'try_next_proc' => FALSE,
511);
512
2b31f3dc
AA
513$iftable_processors['catalyst-stack-49-to-52-SFP'] = array
514(
515 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(49|50|51|52)$@',
516 'replacement' => 'gi\\1/\\2/\\3',
517 'dict_key' => '4-1077',
518 'label' => 'unit \\1 port \\3',
519 'try_next_proc' => FALSE,
520);
521
b652782a
AA
522$iftable_processors['catalyst-stack-1-to-4-SFP'] = array
523(
524 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/([1-4])$@',
525 'replacement' => 'gi\\1/\\2/\\3',
526 'dict_key' => '4-1077',
527 'label' => 'unit \\1 port \\3',
528 'try_next_proc' => FALSE,
529);
530
cd558d4f
AA
531$iftable_processors['catalyst-stack-uplinks-10000SFP+'] = array
532(
533 'pattern' => '@^TenGigabitEthernet(\d+)/(\d+)/([1-4])$@',
534 'replacement' => 'te\\1/\\2/\\3',
535 'dict_key' => '9-1084',
536 'label' => 'unit \\1 port \\3',
537 'try_next_proc' => FALSE,
538);
539
65e11216
AD
540$iftable_processors['catalyst-2948-49-to-50-SFP'] = array
541(
542 'pattern' => '@^port 2/(49|50)$@',
543 'replacement' => 'gi\\1',
544 'dict_key' => '4-1077',
545 'label' => '\\1',
546 'try_next_proc' => FALSE,
547);
548
549$iftable_processors['catalyst-2948-any-100TX'] = array
550(
551 'pattern' => '@^port 2/(\d+)$@',
552 'replacement' => 'fa\\1',
553 'dict_key' => 19,
554 'label' => '\\1',
555 'try_next_proc' => FALSE,
556);
557
74aee2dc
DO
558$iftable_processors['nexus-any-10000SFP+'] = array
559(
56a797ef 560 'pattern' => '@^Ethernet([[:digit:]]/[[:digit:]]+)$@',
74aee2dc 561 'replacement' => 'e\\1',
8536e20a 562 'dict_key' => '9-1084',
56a797ef
DO
563 'label' => '\\1',
564 'try_next_proc' => FALSE,
74aee2dc
DO
565);
566
8acd246d
DO
567$iftable_processors['ftos-any-1000T'] = array
568(
569 'pattern' => '@^GigabitEthernet 0/(\d+)$@',
570 'replacement' => 'gi0/\\1',
571 'dict_key' => '1-24',
572 'label' => '\\1',
573 'try_next_proc' => FALSE,
574);
575
576$iftable_processors['ftos-44-to-47-1000SFP'] = array
577(
578 'pattern' => '@^GigabitEthernet 0/(44|45|46|47)$@',
579 'replacement' => 'gi0/\\1',
580 'dict_key' => '4-1077',
581 'label' => '\\1',
582 'try_next_proc' => FALSE,
583);
584
585$iftable_processors['ftos-any-10000SFP+'] = array
586(
587 'pattern' => '@^TenGigabitEthernet 0/(\d+)$@',
588 'replacement' => 'te0/\\1',
589 'dict_key' => '9-1084',
590 'label' => '\\1',
591 'try_next_proc' => FALSE,
592);
593
1e5a92d8
DO
594$iftable_processors['ftos-any-QSFP+'] = array
595(
596 'pattern' => '@^fortyGigE 0/(\d+)$@',
597 'replacement' => 'fo0/\\1',
598 'dict_key' => '10-1588',
599 'label' => '\\1',
600 'try_next_proc' => FALSE,
601);
602
603$iftable_processors['ftos-mgmt'] = array
604(
605 'pattern' => '@^ManagementEthernet 0/0$@',
606 'replacement' => 'ma0/0',
607 'dict_key' => '1-19',
608 'label' => 'ethernet',
609 'try_next_proc' => FALSE,
610);
611
e7662d90
DO
612$iftable_processors['nexus-mgmt'] = array
613(
614 'pattern' => '@^(mgmt[[:digit:]]+)$@',
615 'replacement' => '\\1',
616 'dict_key' => '1-24',
617 'label' => '\\1',
618 'try_next_proc' => FALSE,
619);
620
56a797ef 621$iftable_processors['procurve-chassis-100TX'] = array
74aee2dc 622(
56a797ef 623 'pattern' => '@^([[:digit:]]+)$@',
74aee2dc
DO
624 'replacement' => '\\1',
625 'dict_key' => 19,
56a797ef
DO
626 'label' => '\\1',
627 'try_next_proc' => FALSE,
628);
629
630$iftable_processors['procurve-chassis-1000T'] = array
631(
632 'pattern' => '@^([[:digit:]]+)$@',
633 'replacement' => '\\1',
634 'dict_key' => 24,
635 'label' => '\\1',
636 'try_next_proc' => FALSE,
637);
638
4b43f713
DO
639$iftable_processors['procurve-45-to-48-combo-1000SFP'] = array
640(
641 'pattern' => '@^(45|46|47|48)$@',
642 'replacement' => '\\1',
643 'dict_key' => '4-1077',
644 'label' => '\\1',
645 'try_next_proc' => TRUE,
646);
647
13b28c20
DO
648$iftable_processors['procurve-21-to-24-combo-1000SFP'] = array
649(
650 'pattern' => '@^(21|22|23|24)$@',
651 'replacement' => '\\1',
652 'dict_key' => '4-1077',
653 'label' => '\\1',
654 'try_next_proc' => TRUE,
655);
656
93c0a7b9
DO
657$iftable_processors['procurve-23-to-24-combo-1000SFP'] = array
658(
659 'pattern' => '@^(23|24)$@',
660 'replacement' => '\\1',
661 'dict_key' => '4-1077',
662 'label' => '\\1',
663 'try_next_proc' => TRUE,
664);
665
f6cab562
AD
666$iftable_processors['procurve-25-to-26-combo-1000SFP'] = array
667(
668 'pattern' => '@^(25|26)$@',
669 'replacement' => '\\1',
670 'dict_key' => '4-1077',
671 'label' => '\\1',
672 'try_next_proc' => TRUE,
673);
674
56a797ef
DO
675$iftable_processors['procurve-modular-100TX'] = array
676(
677 'pattern' => '@^([A-Z][[:digit:]]+)$@',
678 'replacement' => '\\1',
679 'dict_key' => 19,
680 'label' => '\\1',
681 'try_next_proc' => FALSE,
74aee2dc
DO
682);
683
4bbb87a3
AD
684$iftable_processors['procurve-modular-1000T'] = array
685(
686 'pattern' => '@^([A-Z][[:digit:]]+)$@',
687 'replacement' => '\\1',
688 'dict_key' => 24,
689 'label' => '\\1',
690 'try_next_proc' => FALSE,
691);
692
74aee2dc
DO
693$iftable_processors['procurve-25-to-26-1000T'] = array
694(
56a797ef 695 'pattern' => '@^(25|26)$@',
74aee2dc
DO
696 'replacement' => '\\1',
697 'dict_key' => 24,
56a797ef
DO
698 'label' => '\\1',
699 'try_next_proc' => FALSE,
74aee2dc
DO
700);
701
a437a607
AD
702$iftable_processors['procurve-9-to-10-combo-1000SFP'] = array
703(
704 'pattern' => '@^(9|10)$@',
705 'replacement' => '\\1',
706 'dict_key' => '4-1077',
707 'label' => '\\1',
708 'try_next_proc' => TRUE,
709);
710
711$iftable_processors['procurve-9-to-10-1000T'] = array
712(
713 'pattern' => '@^(9|10)$@',
714 'replacement' => '\\1',
715 'dict_key' => 24,
716 'label' => '\\1',
717 'try_next_proc' => FALSE,
718);
719
720$iftable_processors['procurve-27-to-28-1000T'] = array
721(
722 'pattern' => '@^(27|28)$@',
723 'replacement' => '\\1',
724 'dict_key' => 24,
725 'label' => '\\1',
726 'try_next_proc' => FALSE,
727);
728
729$iftable_processors['procurve-27-to-28-combo-1000SFP'] = array
730(
731 'pattern' => '@^(27|28)$@',
732 'replacement' => '\\1',
733 'dict_key' => '4-1077',
734 'label' => '\\1',
735 'try_next_proc' => TRUE,
736);
737
83aedacd
AD
738$iftable_processors['procurve-27-to-28-1000SFP'] = array
739(
740 'pattern' => '@^(27|28)$@',
741 'replacement' => '\\1',
742 'dict_key' => '4-1077',
743 'label' => '\\1',
744 'try_next_proc' => FALSE,
745);
746
74aee2dc
DO
747$iftable_processors['procurve-49-to-50-1000T'] = array
748(
56a797ef 749 'pattern' => '@^(49|50)$@',
74aee2dc
DO
750 'replacement' => '\\1',
751 'dict_key' => 24,
56a797ef
DO
752 'label' => '\\1',
753 'try_next_proc' => FALSE,
74aee2dc
DO
754);
755
13b28c20
DO
756$iftable_processors['procurve-51-to-52-1000SFP'] = array
757(
758 'pattern' => '@^(51|52)$@',
759 'replacement' => '\\1',
760 'dict_key' => '4-1077',
761 'label' => '\\1',
762 'try_next_proc' => FALSE,
763);
764
5d930daf
AD
765$iftable_processors['procurve-49-to-52-10000SFP+'] = array
766(
767 'pattern' => '@^(49|50|51|52)$@',
768 'replacement' => '\\1',
769 'dict_key' => '9-1084',
770 'label' => '\\1',
771 'try_next_proc' => FALSE,
772);
773
4a2358b3
DO
774$iftable_processors['gbe2csfp-1-to-16'] = array
775(
776 'pattern' => '@^Downlink(\d+)$@',
777 'replacement' => '\\0',
778 'dict_key' => '1-1603',
779 'label' => '\\1',
780 'try_next_proc' => FALSE,
781);
782
783$iftable_processors['gbe2csfp-17'] = array
784(
785 'pattern' => '@^Xconnect1$@',
786 'replacement' => '\\0',
787 'dict_key' => '1-1603',
788 'label' => '17',
789 'try_next_proc' => FALSE,
790);
791
792$iftable_processors['gbe2csfp-18'] = array
793(
794 'pattern' => '@^Xconnect2$@',
795 'replacement' => '\\0',
796 'dict_key' => '1-1603',
797 'label' => '18',
798 'try_next_proc' => FALSE,
799);
800
801$iftable_processors['gbe2csfp-19'] = array
802(
803 'pattern' => '@^Mgmt$@',
804 'replacement' => '\\0',
805 'dict_key' => '1-1604',
806 'label' => '19',
807 'try_next_proc' => FALSE,
808);
809
810$iftable_processors['gbe2csfp-20'] = array
811(
812 'pattern' => '@^Uplink1$@',
813 'replacement' => '\\0',
814 'dict_key' => '1-24',
815 'label' => '20',
816 'try_next_proc' => FALSE,
817);
818
819$iftable_processors['gbe2csfp-21sfp'] = array
820(
821 'pattern' => '@^Uplink2$@',
822 'replacement' => '\\0',
823 'dict_key' => '4-1077',
824 'label' => '21',
825 'try_next_proc' => TRUE,
826);
827
828$iftable_processors['gbe2csfp-21'] = array
829(
830 'pattern' => '@^Uplink2$@',
831 'replacement' => '\\0',
832 'dict_key' => '1-24',
833 'label' => '21',
834 'try_next_proc' => FALSE,
835);
836
837$iftable_processors['gbe2csfp-22sfp'] = array
838(
839 'pattern' => '@^Uplink3$@',
840 'replacement' => '\\0',
841 'dict_key' => '4-1077',
842 'label' => '22',
843 'try_next_proc' => TRUE,
844);
845
846$iftable_processors['gbe2csfp-22'] = array
847(
848 'pattern' => '@^Uplink3$@',
849 'replacement' => '\\0',
850 'dict_key' => '1-24',
851 'label' => '22',
852 'try_next_proc' => FALSE,
853);
854
855$iftable_processors['gbe2csfp-23sfp'] = array
856(
857 'pattern' => '@^Uplink4$@',
858 'replacement' => '\\0',
859 'dict_key' => '4-1077',
860 'label' => '23',
861 'try_next_proc' => TRUE,
862);
863
864$iftable_processors['gbe2csfp-23'] = array
865(
866 'pattern' => '@^Uplink4$@',
867 'replacement' => '\\0',
868 'dict_key' => '1-24',
869 'label' => '23',
870 'try_next_proc' => FALSE,
871);
872
873$iftable_processors['gbe2csfp-24sfp'] = array
874(
875 'pattern' => '@^Uplink5$@',
876 'replacement' => '\\0',
877 'dict_key' => '4-1077',
878 'label' => '24',
879 'try_next_proc' => TRUE,
880);
881
882$iftable_processors['gbe2csfp-24'] = array
883(
884 'pattern' => '@^Uplink5$@',
885 'replacement' => '\\0',
886 'dict_key' => '1-24',
887 'label' => '24',
888 'try_next_proc' => FALSE,
889);
890
04b469f9
AD
891$iftable_processors['netgear-fs726tp-100TX'] = array
892(
893 'pattern' => '@^Port (\d+): Fast Ethernet$@',
894 'replacement' => '\\1',
895 'dict_key' => 19,
896 'label' => '\\1',
897 'try_next_proc' => FALSE,
898);
899
900$iftable_processors['netgear-fs726tp-1000SFPcombo'] = array
901(
902 'pattern' => '@^Port (\d+): Gigabit Ethernet$@',
903 'replacement' => '\\1',
904 'dict_key' => '4-1077',
905 'label' => '\\1',
906 'try_next_proc' => TRUE,
907);
908
909$iftable_processors['netgear-fs726tp-1000T'] = array
910(
911 'pattern' => '@^Port (\d+): Gigabit Ethernet$@',
912 'replacement' => '\\1',
913 'dict_key' => 24,
914 'label' => '\\1',
915 'try_next_proc' => FALSE,
916);
917
6a6aa9aa 918$iftable_processors['netgear-23-to-24-1000SPFcombo'] = array
74aee2dc 919(
6a6aa9aa
M
920 'pattern' => '@^g(\d+)$@',
921 'replacement' => 'g\\1',
922 'dict_key' => '4-1077',
923 'label' => 'g\\1',
924 'try_next_proc' => TRUE,
925);
926
927$iftable_processors['netgear-any-1000T'] = array
928(
929 'pattern' => '@^g(\d+)$@',
930 'replacement' => 'g\\1',
56a797ef 931 'dict_key' => 24,
6a6aa9aa 932 'label' => 'g\\1',
56a797ef
DO
933 'try_next_proc' => FALSE,
934);
935
84d4ef27
M
936$iftable_processors['netgear-chassis-any-1000T'] = array
937(
938 'pattern' => '@^Unit: (\d+) Slot: (\d+) Port: (\d+) Gigabit - Level$@',
939 'replacement' => '\\1/\\2/\\3',
940 'dict_key' => 24,
941 'label' => '\\3',
942 'try_next_proc' => FALSE,
943);
944
e326551d
AD
945$iftable_processors['netgear-chassis-any-1000SFP'] = array
946(
947 'pattern' => '@^Unit: (\d+) Slot: (\d+) Port: (\d+) Gigabit - Level$@',
948 'replacement' => '\\1/\\2/\\3',
949 'dict_key' => '4-1077',
950 'label' => '\\3',
951 'try_next_proc' => FALSE,
952);
953
6be06cbb
DO
954$iftable_processors['netgear-chassis-21-to-24-1000Tcombo'] = array
955(
32fae2ee
DO
956 'pattern' => '@^Unit: (\d+) Slot: (\d+) Port: (21|22|23|24) Gigabit - Level$@',
957 'replacement' => '\\1/\\2/\\3',
6be06cbb 958 'dict_key' => 24,
32fae2ee 959 'label' => '\\3T',
6be06cbb
DO
960 'try_next_proc' => FALSE,
961);
962
963$iftable_processors['netgear-chassis-21-to-24-1000SFP'] = array
964(
32fae2ee
DO
965 'pattern' => '@^Unit: (\d+) Slot: (\d+) Port: (21|22|23|24) Gigabit - Level$@',
966 'replacement' => '\\1/\\2/\\3',
8536e20a 967 'dict_key' => '4-1077',
32fae2ee 968 'label' => '\\3F',
6be06cbb
DO
969 'try_next_proc' => TRUE,
970);
971
0d456a22
DO
972$iftable_processors['netgear-chassis-45-to-48-1000SFPcombo'] = array
973(
974 'pattern' => '@^Unit: (\d+) Slot: (\d+) Port: (45|46|47|48) Gigabit - Level$@',
975 'replacement' => '\\1/\\2/\\3',
976 'dict_key' => '4-1077',
977 'label' => '\\3F',
978 'try_next_proc' => TRUE,
979);
980
3e8ad42f
DO
981$iftable_processors['netgear-chassis-any-1000SFPcombo'] = array
982(
32fae2ee
DO
983 'pattern' => '@^Unit: (\d+) Slot: (\d+) Port: (\d+) Gigabit - Level$@',
984 'replacement' => '\\1/\\2/\\3',
3e8ad42f 985 'dict_key' => '4-1077',
32fae2ee 986 'label' => '\\3F',
3e8ad42f
DO
987 'try_next_proc' => TRUE,
988);
989
fc807353
DO
990$iftable_processors['netgear-chassis-any-100TX'] = array
991(
32fae2ee
DO
992 'pattern' => '@^Unit: (\d+) Slot: (\d+) Port: (\d+) 10/100 Copper - Level$@',
993 'replacement' => '\\1/\\2/\\3',
fc807353 994 'dict_key' => 19,
32fae2ee 995 'label' => '\\3',
fc807353
DO
996 'try_next_proc' => FALSE,
997);
998
0d456a22
DO
999$iftable_processors['netgear-chassis-any-SFP+'] = array
1000(
1001 'pattern' => '@^Unit: (\d+) Slot: (\d+) Port: (\d+) 10G - Level$@',
1002 'replacement' => '\\1/\\2/\\3',
1003 'dict_key' => '9-1084',
1004 'label' => '\\3',
1005 'try_next_proc' => FALSE,
1006);
1007
ac02ab69
AD
1008$iftable_processors['netgear-49-to-50-combo-1000SFP'] = array
1009(
1010 'pattern' => '@^GbE_(49|50)$@',
1011 'replacement' => '\\1',
1012 'dict_key' => '4-1077',
1013 'label' => '\\1F',
1014 'try_next_proc' => TRUE,
1015);
1016
1017$iftable_processors['netgear-49-to-50-combo-1000T'] = array
1018(
1019 'pattern' => '@^GbE_(49|50)$@',
1020 'replacement' => '\\1',
1021 'dict_key' => '1-24',
1022 'label' => '\\1T',
1023 'try_next_proc' => FALSE,
1024);
1025
1026$iftable_processors['netgear-any-100TX'] = array
1027(
1028 'pattern' => '@^FE_(\d+)$@',
1029 'replacement' => '\\1',
1030 'dict_key' => 19,
1031 'label' => '\\1',
1032 'try_next_proc' => FALSE,
1033);
1034
56a797ef
DO
1035$iftable_processors['nortel-any-1000T'] = array
1036(
1037 'pattern' => '@^Ethernet Port on unit 1, port ([[:digit:]]+)$@',
74aee2dc
DO
1038 'replacement' => '\\1',
1039 'dict_key' => 24,
56a797ef
DO
1040 'label' => '\\1',
1041 'try_next_proc' => FALSE,
74aee2dc
DO
1042);
1043
fb3e70de
DO
1044$iftable_processors['smc-combo-45-to-48'] = array
1045(
1046 'pattern' => '@^Ethernet Port on unit 1, port (45|46|47|48)$@',
1047 'replacement' => '\\1',
1048 'dict_key' => '4-1077',
1049 'label' => '\\1',
1050 'try_next_proc' => TRUE,
1051);
1052
13b28c20
DO
1053$iftable_processors['smc2-combo-21-to-24'] = array
1054(
1055 'pattern' => '@^Port #(21|22|23|24)$@',
1056 'replacement' => '\\1',
1057 'dict_key' => '4-1077',
1058 'label' => '\\1',
1059 'try_next_proc' => TRUE,
1060);
1061
1062$iftable_processors['smc2-combo-23-to-24'] = array
1063(
1064 'pattern' => '@^Port #(23|24)$@',
1065 'replacement' => '\\1',
1066 'dict_key' => '4-1077',
1067 'label' => '\\1',
1068 'try_next_proc' => TRUE,
1069);
1070
1071$iftable_processors['smc2-combo-25-to-28'] = array
1072(
1073 'pattern' => '@^Port #(25|26|27|28)$@',
1074 'replacement' => '\\1',
1075 'dict_key' => '4-1077',
1076 'label' => '\\1',
1077 'try_next_proc' => TRUE,
1078);
1079
1080$iftable_processors['smc2-1000T-25-to-28'] = array
1081(
1082 'pattern' => '@^Port #(25|26|27|28)$@',
1083 'replacement' => '\\1',
1084 'dict_key' => '1-24',
1085 'label' => '\\1',
1086 'try_next_proc' => FALSE,
1087);
1088
1089$iftable_processors['smc2-any-1000T'] = array
1090(
1091 'pattern' => '@^Port #(\d+)$@',
1092 'replacement' => '\\1',
1093 'dict_key' => '1-24',
1094 'label' => '\\1',
1095 'try_next_proc' => FALSE,
1096);
1097
1098$iftable_processors['smc2-any-100TX'] = array
1099(
1100 'pattern' => '@^Port #(\d+)$@',
1101 'replacement' => '\\1',
1102 'dict_key' => '1-19',
1103 'label' => '\\1',
1104 'try_next_proc' => FALSE,
1105);
1106
91389980
DO
1107$iftable_processors['juniper-DPCE-R-4XGE-XFP'] = array
1108(
7d69a266
DO
1109 'pattern' => '@^xe-([[:digit:]]+)/([[:digit:]]+/[[:digit:]]+)$@',
1110 'replacement' => '\\0',
91389980 1111 'dict_key' => '8-1082', // XFP/empty
7d69a266
DO
1112 'label' => 'slot \\1 port \\2',
1113 'try_next_proc' => FALSE,
1114);
1115
1f54e1ba
DO
1116$iftable_processors['juniper-ex-pic0-1000T'] = array
1117(
1118 'pattern' => '@^ge-([[:digit:]]+)/0/([[:digit:]]+)$@',
1119 'replacement' => '\\0',
1120 'dict_key' => '1-24',
1121 'label' => 'unit \\1 port \\2',
1122 'try_next_proc' => FALSE,
1123);
1124
1125$iftable_processors['juniper-ex-mgmt'] = array
1126(
1127 'pattern' => '/^me0$/',
1128 'replacement' => 'me0',
1129 'dict_key' => '1-24',
1130 'label' => 'MGMT',
1131 'try_next_proc' => FALSE,
1132);
1133
7d69a266
DO
1134$iftable_processors['quidway-21-to-24-comboT'] = array
1135(
1136 'pattern' => '@^GigabitEthernet([[:digit:]]+/[[:digit:]]+/)(21|22|23|24)$@',
1137 'replacement' => 'gi\\1\\2',
1138 'dict_key' => '1-24',
1139 'label' => '\\2',
1140 'try_next_proc' => TRUE,
1141);
1142
24c3e444
DO
1143$iftable_processors['quidway-21-to-24-comboSFP'] = array
1144(
1145 'pattern' => '@^GigabitEthernet([[:digit:]]+/[[:digit:]]+/)(21|22|23|24)$@',
1146 'replacement' => 'gi\\1\\2',
1147 'dict_key' => '4-1077',
1148 'label' => '\\2',
1149 'try_next_proc' => TRUE,
1150);
1151
b55f8de3
DO
1152$iftable_processors['quidway-slot1-SFP'] = array
1153(
1154 'pattern' => '@^GigabitEthernet0/1/([[:digit:]]+)$@',
1155 'replacement' => 'gi0/1/\\1',
1156 'dict_key' => '4-1077',
1157 'label' => 'SFP\\1',
1158 'try_next_proc' => FALSE,
1159);
1160
4d6aad51
DO
1161$iftable_processors['quidway-any-100TX'] = array
1162(
1163 'pattern' => '@^Ethernet([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+)$@',
866dbe0e 1164 'replacement' => 'ether\\1\\2',
4d6aad51
DO
1165 'dict_key' => '1-19',
1166 'label' => '\\2',
1167 'try_next_proc' => FALSE,
1168);
1169
7d69a266
DO
1170$iftable_processors['quidway-any-1000SFP'] = array
1171(
1172 'pattern' => '@^GigabitEthernet([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+)$@',
1173 'replacement' => 'gi\\1\\2',
1174 'dict_key' => '4-1077', // empty SFP-1000
1175 'label' => '\\2',
1176 'try_next_proc' => FALSE,
1177);
1178
24c3e444
DO
1179$iftable_processors['quidway-any-1000T'] = array
1180(
1181 'pattern' => '@^GigabitEthernet([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+)$@',
1182 'replacement' => 'gi\\1\\2',
1183 'dict_key' => '1-24',
1184 'label' => '\\2',
1185 'try_next_proc' => FALSE,
1186);
1187
272158b4
AA
1188$iftable_processors['hce-any-1000T'] = array
1189(
1190 'pattern' => '@^GE([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+)$@',
1191 'replacement' => 'ge\\1\\2',
1192 'dict_key' => '1-24',
1193 'label' => '\\2',
1194 'try_next_proc' => FALSE,
1195);
1196
1197$iftable_processors['hce-any-SFP'] = array
1198(
1199 'pattern' => '@^10GE([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+)$@',
1200 'replacement' => '10ge\\1\\2',
1201 'dict_key' => '9-1084',
1202 'label' => '\\2',
1203 'try_next_proc' => FALSE,
1204);
1205
4b22410c
AA
1206$iftable_processors['hce-any-QSFP-split'] = array
1207(
1208 'pattern' => '@^40GE([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+):([[:digit:]]+)$@',
1209 'replacement' => '40ge\\1\\2:\\3',
1210 'dict_key' => '9-1084',
1211 'label' => '\\2:\\3',
1212 'try_next_proc' => FALSE,
1213);
1214
272158b4
AA
1215$iftable_processors['hce-any-QSFP'] = array
1216(
1217 'pattern' => '@^40GE([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+)$@',
1218 'replacement' => '40ge\\1\\2',
1219 'dict_key' => '10-1588',
1220 'label' => '\\2',
1221 'try_next_proc' => FALSE,
1222);
1223
7d69a266
DO
1224$iftable_processors['quidway-XFP'] = array
1225(
1226 'pattern' => '@^XGigabitEthernet([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+)$@',
1227 'replacement' => 'xg\\1\\2',
1228 'dict_key' => '8-1082',
1229 'label' => '\\2',
1230 'try_next_proc' => FALSE,
1231);
1232
1233$iftable_processors['quidway-mgmt'] = array
1234(
1235 'pattern' => '@^MEth([[:digit:]]+/[[:digit:]]+/)([[:digit:]]+)$@',
1236 'replacement' => 'me\\1\\2',
1237 'dict_key' => '1-19',
1238 'label' => 'eth',
91389980
DO
1239 'try_next_proc' => FALSE,
1240);
1241
661b3fdb
DO
1242$iftable_processors['fgs-1-to-4-comboSFP'] = array
1243(
1244 # only 4 first copper ports of 1st unit of a stack
1245 'pattern' => '@^GigabitEthernet1/1/(1|2|3|4)$@',
1246 'replacement' => 'e1/1/\\1',
1247 'dict_key' => '4-1077',
1248 'label' => '\\1F',
1249 'try_next_proc' => TRUE,
1250);
1251
1252$iftable_processors['fgs-any-1000T'] = array
1253(
6c32c3ff
AA
1254 'pattern' => '@^GigabitEthernet(0|1)/1/([[:digit:]]+)$@',
1255 'replacement' => 'e\\1/1/\\2',
661b3fdb 1256 'dict_key' => '1-24',
6c32c3ff
AA
1257 'label' => '\\2',
1258 'try_next_proc' => FALSE,
1259);
1260
1261$iftable_processors['fls624-combo'] = array
1262(
1263 'pattern' => '@^GigabitEthernet0/1/(21|22|23|24)$@',
1264 'replacement' => 'e0/1/\\1',
1265 'dict_key' => '4-1077',
661b3fdb 1266 'label' => '\\1',
6c32c3ff
AA
1267 'try_next_proc' => TRUE,
1268);
1269
1270$iftable_processors['fls648-combo'] = array
1271(
1272 'pattern' => '@^GigabitEthernet0/1/(45|46|47|48)$@',
1273 'replacement' => 'e0/1/\\1',
1274 'dict_key' => '4-1077',
1275 'label' => '\\1',
1276 'try_next_proc' => TRUE,
1277);
1278
1279# These can be CX4, but that is not handled here.
1280$iftable_processors['fls-uplinks'] = array
1281(
1282 'pattern' => '@^10GigabitEthernet0/([234])/1$@',
1283 'replacement' => 'e0/\\1/1',
1284 'dict_key' => '8-1082',
1285 'label' => 'Slot \\1',
661b3fdb
DO
1286 'try_next_proc' => FALSE,
1287);
1288
1289$iftable_processors['fgs-uplinks'] = array
1290(
1291 'pattern' => '@^10GigabitEthernet1/2/([[:digit:]]+)$@',
1292 'replacement' => 'e1/2/\\1',
1293 'dict_key' => '8-1082', // default is XFP, but may be overridden to CX4
1294 'label' => 'Slot2 \\1',
1295 'try_next_proc' => FALSE,
1296);
1297
ec523868
DO
1298$iftable_processors['fcx-uplinks'] = array
1299(
1300 'pattern' => '@^10GigabitEthernet1/2/([[:digit:]]+)$@',
1301 'replacement' => 'e1/2/\\1',
1302 'dict_key' => '9-1084',
1303 'label' => 'X\\1',
1304 'try_next_proc' => FALSE,
1305);
1306
1307$iftable_processors['fcx-management'] = array
1308(
1309 'pattern' => '@^Management$@',
1310 'replacement' => 'management1',
1311 'dict_key' => '1-24',
1312 'label' => 'Management',
1313 'try_next_proc' => FALSE,
1314);
1315
31237655
M
1316$iftable_processors['turboiron-any-10000SFP+'] = array
1317(
1318 'pattern' => '@^10GigabitEthernet([[:digit:]]+)$@',
3077a1f4 1319 'replacement' => 'e\\1',
31237655 1320 'dict_key' => '4-1077',
3077a1f4 1321 'label' => 'Slot \\1',
31237655
M
1322 'try_next_proc' => FALSE,
1323);
1324
1325$iftable_processors['turboiron-any-10-100-1000T'] = array
1326(
1327 'pattern' => '@^GigabitEthernet([[:digit:]]+)$@',
3077a1f4 1328 'replacement' => 'e\\1',
31237655 1329 'dict_key' => '1-24',
3077a1f4 1330 'label' => 'Slot \\1',
31237655
M
1331 'try_next_proc' => FALSE,
1332);
1333
4eeadb79
DO
1334$iftable_processors['summit-25-to-26-XFP-uplinks'] = array
1335(
1336 'pattern' => '@^.+ Port (25|26)$@',
1337 'replacement' => '\\1',
1338 'dict_key' => '8-1082',
1339 'label' => '\\1',
1340 'try_next_proc' => FALSE,
1341);
1342
dbcf1931
DO
1343$iftable_processors['summit-27-to-30-XFP-uplinks'] = array
1344(
1345 'pattern' => '@^.+ Port (27|28|29|30)$@',
1346 'replacement' => '\\1',
1347 'dict_key' => '8-1082',
1348 'label' => '\\1',
1349 'try_next_proc' => FALSE,
1350);
1351
4eeadb79
DO
1352$iftable_processors['summit-21-to-24-comboSFP'] = array
1353(
1354 'pattern' => '@^.+ Port (21|22|23|24)$@',
1355 'replacement' => '\\1',
1356 'dict_key' => '4-1077',
1357 'label' => '\\1',
1358 'try_next_proc' => TRUE,
1359);
1360
dbcf1931
DO
1361$iftable_processors['summit-13-to-24-comboT'] = array
1362(
1363 'pattern' => '@^.+ Port (1[3456789]|2[01234])$@',
1364 'replacement' => '\\1',
1365 'dict_key' => '1-24',
1366 'label' => '\\1',
1367 'try_next_proc' => TRUE,
1368);
1369
4eeadb79
DO
1370$iftable_processors['summit-any-1000T'] = array
1371(
1372 'pattern' => '@^.+ Port ([[:digit:]]+)$@',
1373 'replacement' => '\\1',
1374 'dict_key' => '1-24',
1375 'label' => '\\1',
1376 'try_next_proc' => FALSE,
1377);
1378
dbcf1931
DO
1379$iftable_processors['summit-any-SFP'] = array
1380(
1381 'pattern' => '@^.+ Port ([[:digit:]]+)$@',
1382 'replacement' => '\\1',
1383 'dict_key' => '4-1077',
1384 'label' => '\\1',
1385 'try_next_proc' => FALSE,
1386);
1387
4eeadb79
DO
1388$iftable_processors['summit-management'] = array
1389(
1390 'pattern' => '@^Management Port$@',
1391 'replacement' => 'mgmt',
1392 'dict_key' => '1-19',
21d38e6b 1393 'label' => 'management',
4eeadb79
DO
1394 'try_next_proc' => FALSE,
1395);
1396
13b28c20
DO
1397$iftable_processors['C3KX-NM-10000'] = array
1398(
1399 'pattern' => '@^TenGigabitEthernet1/(\d+)$@',
1400 'replacement' => 'te1/\\1',
1401 'dict_key' => '9-1084',
1402 'label' => 'NM TE\\1',
1403 'try_next_proc' => FALSE,
1404);
1405
1406$iftable_processors['C3KX-NM-1000'] = array
1407(
1408 'pattern' => '@^GigabitEthernet1/(\d+)$@',
1409 'replacement' => 'gi1/\\1',
1410 'dict_key' => '4-1077',
1411 'label' => 'NM G\\1',
1412 'try_next_proc' => FALSE,
1413);
1414
2ea5fd28
DO
1415$iftable_processors['arista-any-1000T'] = array
1416(
1417 'pattern' => '@^Ethernet([[:digit:]]+)$@',
1418 'replacement' => 'e\\1',
1419 'dict_key' => '1-24',
1420 'label' => '\\1',
1421 'try_next_proc' => FALSE,
1422);
1423
1424$iftable_processors['arista-49-to-52-SFP+'] = array
1425(
1426 'pattern' => '@^Ethernet(49|50|51|52)$@',
1427 'replacement' => 'e\\1',
1428 'dict_key' => '9-1084',
1429 'label' => '\\1',
1430 'try_next_proc' => FALSE,
1431);
1432
fe8f91c0 1433$iftable_processors['arista-any-SFP+'] = array
06a03a99 1434(
92df4b0e 1435 'pattern' => '@^Ethernet([[:digit:]]+)$@',
1b3176ac 1436 'replacement' => 'e\\1',
92df4b0e
AD
1437 'dict_key' => '9-1084',
1438 'label' => '\\1',
1439 'try_next_proc' => FALSE,
06a03a99
AD
1440);
1441
1442$iftable_processors['arista-management'] = array
1443(
92df4b0e 1444 'pattern' => '@^Management(1|2)$@',
2ea5fd28 1445 'replacement' => 'ma\\1',
92df4b0e 1446 'dict_key' => '1-24',
2ea5fd28 1447 'label' => '<--->',
92df4b0e
AD
1448 'try_next_proc' => FALSE,
1449);
1450
1451$iftable_processors['dell-33xx-any-combo-1000SFP'] = array
1452(
1453 'pattern' => '@^1/g(\d+)$@',
1454 'replacement' => 'g\\1',
1455 'dict_key' => '4-1077',
d7d68b9b 1456 'label' => '\\1',
92df4b0e
AD
1457 'try_next_proc' => TRUE,
1458);
1459
1460$iftable_processors['dell-33xx-any-1000T'] = array
1461(
1462 'pattern' => '@^1/g(\d+)$@',
1463 'replacement' => 'g\\1',
1464 'dict_key' => '1-24',
d7d68b9b 1465 'label' => '\\1',
92df4b0e
AD
1466 'try_next_proc' => FALSE,
1467);
1468
8595dfd0
AD
1469$iftable_processors['dell-33xx-any-100TX'] = array
1470(
1471 'pattern' => '@^1/e(\d+)$@',
1472 'replacement' => 'e\\1',
1473 'dict_key' => 19,
d7d68b9b 1474 'label' => '\\1',
8595dfd0
AD
1475 'try_next_proc' => FALSE,
1476);
1477
1ce6a44d
AD
1478$iftable_processors['dell-5224-21-to-24-combo-1000SFP'] = array
1479(
1480 'pattern' => '@^EtherNet Port on unit 1, port:(21|22|23|24)$@',
1481 'replacement' => 'g\\1',
1482 'dict_key' => '4-1077',
d7d68b9b 1483 'label' => '\\1',
1ce6a44d
AD
1484 'try_next_proc' => TRUE,
1485);
1486
1487$iftable_processors['dell-52xx-any-1000T'] = array
1488(
1489 'pattern' => '@^EtherNet Port on unit 1, port:(\d+)$@',
1490 'replacement' => 'g\\1',
1491 'dict_key' => 24,
d7d68b9b 1492 'label' => '\\1',
1ce6a44d
AD
1493 'try_next_proc' => FALSE,
1494);
1495
a5b9e656
MB
1496$iftable_processors['dell-m6220-gigabitethernet'] = array
1497(
1498 'pattern' => '@Gi1/0/(\d+)$@',
1499 'replacement' => 'g\\1',
1500 'dict_key' => '1-24',
1501 'label' => 'g\\1',
1502 'try_next_proc' => TRUE,
1503);
1504
92df4b0e
AD
1505$iftable_processors['dell-g1-to-g2-1000SFP'] = array
1506(
1507 'pattern' => '@^g(1|2)$@',
1508 'replacement' => 'g\\1',
1509 'dict_key' => '4-1077',
d7d68b9b 1510 'label' => '\\1',
92df4b0e
AD
1511 'try_next_proc' => FALSE,
1512);
1513
1514$iftable_processors['dell-g3-to-g4-1000T'] = array
1515(
1516 'pattern' => '@^g(3|4)$@',
1517 'replacement' => 'g\\1',
1518 'dict_key' => '1-24',
d7d68b9b 1519 'label' => '\\1',
92df4b0e
AD
1520 'try_next_proc' => FALSE,
1521);
1522
1b10e7cf
AD
1523$iftable_processors['dell-g17-to-g24-combo-1000T'] = array
1524(
1525 'pattern' => '@^g(17|18|19|20|21|22|23|24)$@',
1526 'replacement' => 'g\\1',
1527 'dict_key' => '1-24',
d7d68b9b 1528 'label' => '\\1',
92df4b0e
AD
1529 'try_next_proc' => TRUE,
1530);
1531
8595dfd0 1532$iftable_processors['dell-g21-to-g24-combo-1000SFP'] = array
92df4b0e
AD
1533(
1534 'pattern' => '@^g(21|22|23|24)$@',
1535 'replacement' => 'g\\1',
92df4b0e 1536 'dict_key' => '4-1077',
d7d68b9b 1537 'label' => '\\1',
92df4b0e
AD
1538 'try_next_proc' => TRUE,
1539);
1540
a1fc412e
AD
1541$iftable_processors['dell-g23-to-g24-combo-1000SFP'] = array
1542(
1543 'pattern' => '@^g(23|24)$@',
1544 'replacement' => 'g\\1',
1545 'dict_key' => '4-1077',
1546 'label' => '\\1',
1547 'try_next_proc' => TRUE,
1548);
1549
1b10e7cf
AD
1550$iftable_processors['dell-any-1000SFP'] = array
1551(
1552 'pattern' => '@^g(\d+)$@',
1553 'replacement' => 'g\\1',
1554 'dict_key' => '4-1077',
d7d68b9b 1555 'label' => '\\1',
1b10e7cf
AD
1556 'try_next_proc' => FALSE,
1557);
1558
75016247
RD
1559$iftable_processors['3com-27-to-28-1000T'] = array
1560(
1561 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(27|28)$@',
1562 'replacement' => '\\1/\\2/\\3',
1563 'dict_key' => '1-24',
1564 'label' => '\\3',
1565 'try_next_proc' => FALSE,
1566);
1567
1568$iftable_processors['3com-51-to-52-1000T'] = array
1569(
1570 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(51|52)$@',
1571 'replacement' => '\\1/\\2/\\3',
1572 'dict_key' => '1-24',
1573 'label' => '\\3',
1574 'try_next_proc' => FALSE,
1575);
1576
1577$iftable_processors['3com-25-to-26-1000SFP'] = array
1578(
1579 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(25|26)$@',
1580 'replacement' => '\\1/\\2/\\3',
1581 'dict_key' => '4-1077',
1582 'label' => '\\3',
1583 'try_next_proc' => FALSE,
1584);
1585
1329ef2f
RD
1586$iftable_processors['3com-27-to-28-1000SFP'] = array
1587(
1588 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(27|28)$@',
1589 'replacement' => '\\1/\\2/\\3',
1590 'dict_key' => '4-1077',
1591 'label' => '\\3',
1592 'try_next_proc' => FALSE,
1593);
1594
75016247
RD
1595$iftable_processors['3com-49-to-50-1000SFP'] = array
1596(
1597 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(49|50)$@',
1598 'replacement' => '\\1/\\2/\\3',
1599 'dict_key' => '4-1077',
1600 'label' => '\\3',
1601 'try_next_proc' => FALSE,
1602);
1603
c2e802a4
DO
1604$iftable_processors['3com-49-to-50-1000T'] = array
1605(
1606 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(49|50)$@',
1607 'replacement' => '\\1/\\2/\\3',
1608 'dict_key' => '1-24',
1609 'label' => '\\3',
1610 'try_next_proc' => FALSE,
1611);
1612
75016247 1613$iftable_processors['3com-51-to-52-1000SFP'] = array
1cd6eca3 1614(
75016247 1615 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(51|52)$@',
1cd6eca3
AD
1616 'replacement' => '\\1/\\2/\\3',
1617 'dict_key' => '4-1077',
1618 'label' => '\\3',
1619 'try_next_proc' => FALSE,
1620);
1621
c2e802a4
DO
1622$iftable_processors['3com-any-100TX'] = array
1623(
1624 'pattern' => '@^Ethernet(\d+)/(\d+)/(\d+)$@',
1625 'replacement' => '\\1/\\2/\\3',
1626 'dict_key' => '1-19',
1627 'label' => '\\3',
1628 'try_next_proc' => FALSE,
1629);
1630
1cd6eca3
AD
1631$iftable_processors['3com-any-1000T'] = array
1632(
1633 'pattern' => '@^GigabitEthernet(\d+)/(\d+)/(\d+)$@',
1634 'replacement' => '\\1/\\2/\\3',
1635 'dict_key' => 24,
1636 'label' => '\\3',
1637 'try_next_proc' => FALSE,
1638);
1639
c4acc30b
AD
1640$iftable_processors['tplink-21-to-24-combo-1000SFP'] = array
1641(
1642 'pattern' => '@^.+ Port on unit .+ port (21|22|23|24)$@',
1643 'replacement' => 'g\\1',
1644 'dict_key' => '4-1077',
1645 'label' => '\\1',
1646 'try_next_proc' => TRUE,
1647);
1648
327fef16
M
1649$iftable_processors['tplink-25-to-28-1000T'] = array
1650(
1651 'pattern' => 'port (25|26|27|28): Gigabit Copper',
1652 'replacement' => 'g\\1',
1653 'dict_key' => 24,
1654 'label' => '\\1',
1655 'try_next_proc' => FALSE,
1656);
1657
1658$iftable_processors['tplink-27-to-28-combo-1000SFP'] = array
1659(
1660 'pattern' => 'port (27|28): Gigabit Copper',
1661 'replacement' => 'g\\1',
1662 'dict_key' => '4-1077',
1663 'label' => '\\1',
1664 'try_next_proc' => TRUE,
1665);
1666
1667$iftable_processors['tplink-any-100T'] = array
1668(
1669 'pattern' => 'port ([[:digit:]]+): 10/100 Copper',
1670 'replacement' => 'e\\1',
1671 'dict_key' => 24,
1672 'label' => '\\1',
1673 'try_next_proc' => FALSE,
1674);
1675
c4acc30b
AD
1676$iftable_processors['tplink-any-1000T'] = array
1677(
1678 'pattern' => '@^.+ Port on unit .+ port ([[:digit:]]+)$@',
1679 'replacement' => 'g\\1',
1680 'dict_key' => 24,
1681 'label' => '\\1',
1682 'try_next_proc' => FALSE,
1683);
1684
f60a9008
AD
1685$iftable_processors['motorola-rfs-any-1000T'] = array
1686(
1687 'pattern' => '@^ge(\d+)$@',
1688 'replacement' => 'ge\\1',
1689 'dict_key' => '1-24',
1690 'label' => '\\1',
1691 'try_next_proc' => FALSE,
1692);
1693
1694$iftable_processors['motorola-rfs-uplink-comboSFP'] = array
1695(
1696 'pattern' => '@^up(\d+)$@',
1697 'replacement' => 'up\\1',
1698 'dict_key' => '4-1077',
1699 'label' => 'uplink',
1700 'try_next_proc' => TRUE,
1701);
1702
1703$iftable_processors['motorola-rfs-uplink-comboT'] = array
1704(
1705 'pattern' => '@^up(\d+)$@',
1706 'replacement' => 'up\\1',
1707 'dict_key' => '1-24',
1708 'label' => 'uplink',
1709 'try_next_proc' => FALSE,
1710);
1711
49055269
AD
1712$iftable_processors['dlink-21-to-24-comboSFP'] = array
1713(
1714 'pattern' => '@^Slot0/(21|22|23|24)$@',
1715 'replacement' => '\\1F',
1716 'dict_key' => '4-1077',
1717 'label' => '\\1F',
1718 'try_next_proc' => TRUE,
1719);
1720
1721$iftable_processors['dlink-21-to-24-comboT'] = array
1722(
1723 'pattern' => '@^Slot0/(21|22|23|24)$@',
1724 'replacement' => '\\1T',
1725 'dict_key' => '1-24',
1726 'label' => '\\1T',
1727 'try_next_proc' => FALSE,
1728);
1729
1730$iftable_processors['dlink-any-1000T'] = array
1731(
1732 'pattern' => '@^Slot0/(\d+)$@',
1733 'replacement' => '\\1',
1734 'dict_key' => '1-24',
1735 'label' => '\\1',
1736 'try_next_proc' => FALSE,
1737);
1738
a5eaff9a
AD
1739$iftable_processors['dlink-rmon-any-100TX'] = array
1740(
1741 'pattern' => '@^RMON Port (\d+) on Unit (\d+)$@',
1742 'replacement' => '\\2/\\1',
1743 'dict_key' => '1-19',
1744 'label' => 'unit \\2 port \\1',
1745 'try_next_proc' => FALSE,
1746);
1747
1748$iftable_processors['dlink-rmon-49-to-50-comboSFP'] = array
1749(
1750 'pattern' => '@^RMON Port (49|50) on Unit (\d+)$@',
1751 'replacement' => '\\2/\\1',
1752 'dict_key' => '4-1077',
1753 'label' => 'unit \\2 port \\1',
1754 'try_next_proc' => TRUE,
1755);
1756
1757$iftable_processors['dlink-rmon-49-to-50-comboT'] = array
1758(
1759 'pattern' => '@^RMON Port (49|50) on Unit (\d+)$@',
1760 'replacement' => '\\2/\\1',
1761 'dict_key' => '1-24',
1762 'label' => 'unit \\2 port \\1',
1763 'try_next_proc' => FALSE,
1764);
1765
1766$iftable_processors['dlink-rmon-51-to-52-1000T'] = array
1767(
1768 'pattern' => '@^RMON Port (51|52) on Unit (\d+)$@',
1769 'replacement' => '\\2/\\1',
1770 'dict_key' => 24,
1771 'label' => 'unit \\2 port \\1',
1772 'try_next_proc' => FALSE,
1773);
1774
a3520e4c
DO
1775$iftable_processors['nec-mgmt'] = array
1776(
1777 'pattern' => '@^MGMT0$@',
1778 'replacement' => 'mgmt 0', # note the space
1779 'dict_key' => '1-24',
1780 'label' => 'MNG',
1781 'try_next_proc' => FALSE,
1782);
1783
1784$iftable_processors['nec-any-1000T'] = array
1785(
1786 'pattern' => '@^GigabitEther 0/(\d+)$@',
1787 'replacement' => 'gi 0/\\1', # note the space
1788 'dict_key' => '1-24',
1789 'label' => '\\1',
1790 'try_next_proc' => FALSE,
1791);
1792
1793$iftable_processors['nec-any-SFP+'] = array
1794(
1795 'pattern' => '@^TenGigabitEther 0/(\d+)$@',
1796 'replacement' => 'te 0/\\1', # note the space
1797 'dict_key' => '9-1084',
1798 'label' => '\\1',
1799 'try_next_proc' => FALSE,
1800);
1801
ecc982a6
DO
1802$iftable_processors['ibm-mgmt'] = array
1803(
1804 'pattern' => '@^Management1$@',
1805 'replacement' => 'mgmt',
1806 'dict_key' => '1-24',
1807 'label' => 'Mgmt',
1808 'try_next_proc' => FALSE,
1809);
1810
24ae7cd1
DO
1811$iftable_processors['ibm-any-1000T'] = array
1812(
1813 'pattern' => '@^Ethernet(\d+)$@',
1814 'replacement' => 'port \\1',
1815 'dict_key' => '1-24',
1816 'label' => '\\1',
1817 'try_next_proc' => FALSE,
1818);
1819
1820$iftable_processors['ibm-49-to-52-SFP+'] = array
1821(
1822 'pattern' => '@^Ethernet(49|50|51|52)$@',
1823 'replacement' => 'port \\1',
1824 'dict_key' => '9-1084',
1825 'label' => '\\1',
1826 'try_next_proc' => FALSE,
1827);
1828
78da1c4c
CJ
1829$iftable_processors['ibm-45-to-48-SFP'] = array
1830(
1831 'pattern' => '@^Ethernet(45|46|47|48)$@',
1832 'replacement' => 'port \\1',
1833 'dict_key' => '4-1077',
1834 'label' => '\\1',
1835 'try_next_proc' => FALSE,
1836);
1837
ecc982a6
DO
1838$iftable_processors['ibm-any-SFP+'] = array
1839(
1840 'pattern' => '@^Ethernet(\d+)$@',
1841 'replacement' => 'port \\1',
1842 'dict_key' => '9-1084',
1843 'label' => '\\1',
1844 'try_next_proc' => FALSE,
1845);
1846
78da1c4c
CJ
1847$iftable_processors['brocade-icx-64xx-1000SFP'] = array
1848(
1849 'pattern' => '@^GigabitEthernet([[:digit:]]+/2/)([[:digit:]]+)$@',
1850 'replacement' => '\\1\\2',
1851 'dict_key' => '4-1077', // empty SFP-1000
1852 'label' => '\\2',
1853 'try_next_proc' => FALSE,
1854);
1855
1856$iftable_processors['brocade-icx-64xx-10000SFP'] = array
1857(
1858 'pattern' => '@^10GigabitEthernet([[:digit:]]+/2/)([[:digit:]]+)$@',
1859 'replacement' => '\\1\\2',
1860 'dict_key' => '9-1084', // empty SFP+
1861 'label' => '\\2',
1862 'try_next_proc' => FALSE,
1863);
1864
1865$iftable_processors['brocade-icx-64xx-1000T'] = array
1866(
1867 'pattern' => '@^GigabitEthernet([[:digit:]]+/1/)([[:digit:]]+)$@',
1868 'replacement' => '\\1\\2',
1869 'dict_key' => '1-24',
1870 'label' => '\\2',
1871 'try_next_proc' => FALSE,
1872);
1873
536e7323 1874global $known_switches;
74aee2dc
DO
1875$known_switches = array // key is system OID w/o "enterprises" prefix
1876(
feee5e5a
DO
1877 '9.1.217' => array
1878 (
1879 'dict_key' => 124,
1880 'text' => 'WS-C2924-XL: 24 RJ-45/10-100TX',
1881 'processors' => array ('catalyst-chassis-any-100TX'),
10e81331
AD
1882 ),
1883 '9.1.220' => array
1884 (
1885 'dict_key' => 1719,
1886 'text' => 'WS-C2924M-XL: 24 RJ-45/10-100TX',
1887 'processors' => array ('catalyst-chassis-any-100TX'),
feee5e5a 1888 ),
462e65ac
DO
1889 '9.1.246' => array
1890 (
1891 'dict_key' => 391,
1892 'text' => 'WS-C3508G-XL: 8 GBIC/1000',
1893 'processors' => array ('catalyst-chassis-any-1000GBIC'),
1894 ),
d7466acb
DO
1895 '9.1.248' => array
1896 (
1897 'dict_key' => 393,
1898 'text' => 'WS-C3524-XL: 24 RJ-45/10-100TX + 2 GBIC/1000',
1899 'processors' => array ('catalyst-chassis-any-1000GBIC', 'catalyst-chassis-any-100TX'),
1900 ),
cfd07952
DO
1901 '9.1.278' => array
1902 (
1903 'dict_key' => 395,
1904 'text' => 'WS-C3548-XL: 48 RJ-45/10-100TX + 2 GBIC/1000',
1905 'processors' => array ('catalyst-chassis-any-1000GBIC', 'catalyst-chassis-any-100TX'),
1906 ),
103ed845
M
1907 '9.1.282' => array
1908 (
1909 'dict_key' => 154,
1910 'text' => 'WS-C6506: modular device (INCOMPLETE!)',
1911 'processors' => array ('catalyst-chassis-any-1000T'),
1912 ),
1913 '9.1.323' => array
1914 (
1915 'dict_key' => 381,
832482c1 1916 'text' => 'WS-C2950-12 12 RJ-45/10-100TX',
103ed845
M
1917 'processors' => array ('catalyst-chassis-any-100TX'),
1918 ),
74aee2dc
DO
1919 '9.1.324' => array
1920 (
1921 'dict_key' => 380,
1922 'text' => 'WS-C2950-24: 24 RJ-45/10-100TX',
6be06cbb 1923 'processors' => array ('catalyst-chassis-any-100TX'),
74aee2dc
DO
1924 ),
1925 '9.1.325' => array
1926 (
1927 'dict_key' => 382,
1928 'text' => 'WS-C2950C-24: 24 RJ-45/10-100TX + 2 MT-RJ/100FX fiber',
6be06cbb 1929 'processors' => array ('catalyst-chassis-25-to-26-100FX/MT-RJ', 'catalyst-chassis-any-100TX'),
74aee2dc 1930 ),
a3432267
DO
1931 '9.1.359' => array
1932 (
1933 'dict_key' => 386,
1934 'text' => 'WS-C2950T-24: 24 RJ-45/10-100TX + 2 1000T uplinks',
1935 'processors' => array ('catalyst-chassis-uplinks-1000T', 'catalyst-chassis-any-100TX'),
1936 ),
8fe7aefe
AD
1937 '9.1.366' => array
1938 (
1939 'dict_key' => 400,
1940 'text' => 'WS-C3550-24: 24 RJ-45/10-100TX + 2 GBIC/1000',
1941 'processors' => array ('catalyst-chassis-any-1000GBIC', 'catalyst-chassis-any-100TX'),
1942 ),
103ed845 1943 '9.1.367' => array
47a523af 1944 (
103ed845
M
1945 'dict_key' => 404,
1946 'text' => 'WS-C3550-48: 48 RJ-45/10-100TX + 2 GBIC/1000',
1947 'processors' => array ('catalyst-chassis-any-100TX', 'catalyst-chassis-any-1000GBIC'),
47a523af 1948 ),
103ed845 1949 '9.1.368' => array
bc8b21f0 1950 (
103ed845
M
1951 'dict_key' => 398,
1952 'text' => 'WS-C3550-12T: 10 RJ-45/10-100-1000T(X) + 2 GBIC/1000',
1953 'processors' => array ('catalyst-1-to-10-1000T', 'catalyst-11-to-12-GBIC'),
bc8b21f0 1954 ),
103ed845 1955 '9.1.428' => array
ec523868 1956 (
103ed845
M
1957 'dict_key' => 389,
1958 'text' => 'WS-C2950G-24: 24 RJ-45/10-100TX + 2 GBIC/1000',
1959 'processors' => array ('catalyst-chassis-any-1000GBIC', 'catalyst-chassis-any-100TX'),
8a6a7c3c 1960 ),
103ed845 1961 '9.1.429' => array
8a6a7c3c 1962 (
103ed845
M
1963 'dict_key' => 390,
1964 'text' => 'WS-C2950G-48: 48 RJ-45/10-100TX + 2 GBIC/1000',
1965 'processors' => array ('catalyst-chassis-any-1000GBIC', 'catalyst-chassis-any-100TX'),
ec523868 1966 ),
103ed845 1967 '9.1.431' => array
4d043be1 1968 (
103ed845
M
1969 'dict_key' => 399,
1970 'text' => 'WS-C3550-12G: 10 GBIC/1000 + 2 RJ-45/10-100-1000T(X)',
1971 'processors' => array ('catalyst-blade-11-to-12-1000T', 'catalyst-chassis-any-1000GBIC'),
4d043be1 1972 ),
103ed845 1973 '9.1.471' => array
13b28c20 1974 (
103ed845
M
1975 'dict_key' => 270,
1976 'text' => '2651XM: 2 RJ-45/10-100TX',
1977 'processors' => array ('catalyst-chassis-any-100TX'),
13b28c20 1978 ),
103ed845 1979 '9.1.472' => array
d6d3dbea 1980 (
103ed845 1981 'dict_key' => 383,
832482c1 1982 'text' => 'WS-C2950G-24-DC 24 RJ-45/10-100TX + 2 GBIC/1000',
103ed845 1983 'processors' => array ('catalyst-chassis-any-1000GBIC','catalyst-chassis-any-100TX'),
d6d3dbea 1984 ),
0dd3a784
M
1985 '9.1.480' => array
1986 (
1987 'dict_key' => 385,
1988 'text' => 'WS-C2950SX-24 24 RJ-45/10-100TX + 2 1000Base-SX',
1989 'processors' => array ('catalyst-chassis-uplinks-1000SX','catalyst-chassis-any-100TX'),
1990 ),
74aee2dc
DO
1991 '9.1.527' => array
1992 (
1993 'dict_key' => 210,
1994 'text' => 'WS-C2970G-24T: 24 RJ-45/10-100-1000T(X)',
6be06cbb 1995 'processors' => array ('catalyst-chassis-any-1000T'),
74aee2dc 1996 ),
103ed845 1997 '9.1.559' => array
74aee2dc 1998 (
103ed845
M
1999 'dict_key' => 387,
2000 'text' => 'WS-C2950T-48: 48 RJ-45/10-100TX + 2 RJ-45/10-100-1000T(X)',
2001 'processors' => array ('catalyst-chassis-uplinks-1000T', 'catalyst-chassis-any-100TX'),
74aee2dc 2002 ),
103ed845 2003 '9.1.560' => array
74aee2dc 2004 (
103ed845
M
2005 'dict_key' => 384,
2006 'text' => 'WS-C2950SX-48: 48 RJ-45/10-100TX + 2 1000Base-SX',
2007 'processors' => array ('catalyst-chassis-uplinks-1000SX', 'catalyst-chassis-any-100TX'),
74aee2dc 2008 ),
103ed845 2009 '9.1.561' => array
74aee2dc 2010 (
103ed845
M
2011 'dict_key' => 115,
2012 'text' => 'WS-C2970G-24TS: 24 RJ-45/10-100-1000T(X) + 4 SFP/1000',
2013 'processors' => array ('catalyst-chassis-25-to-28-1000SFP', 'catalyst-chassis-any-1000T'),
74aee2dc
DO
2014 ),
2015 '9.1.563' => array
2016 (
2017 'dict_key' => 171,
2018 'text' => 'WS-C3560-24PS: 24 RJ-45/10-100TX + 2 SFP/1000',
6be06cbb 2019 'processors' => array ('catalyst-chassis-any-1000SFP', 'catalyst-chassis-any-100TX'),
74aee2dc
DO
2020 ),
2021 '9.1.564' => array
2022 (
2023 'dict_key' => 172,
2024 'text' => 'WS-C3560-48PS: 48 RJ-45/10-100TX + 4 SFP/1000',
6be06cbb 2025 'processors' => array ('catalyst-chassis-any-1000SFP', 'catalyst-chassis-any-100TX'),
74aee2dc 2026 ),
d8188a1c
AD
2027 '9.1.569' => array
2028 (
2029 'dict_key' => 2024,
2030 'text' => 'Cisco 877 ISR: 4 RJ-45/10-100TX',
2031 'processors' => array ('catalyst-chassis-any-100TX'),
2032 ),
2033 '9.1.570' => array
2034 (
2035 'dict_key' => 2025,
2036 'text' => 'Cisco 878 ISR: 4 RJ-45/10-100TX',
2037 'processors' => array ('catalyst-chassis-any-100TX'),
2038 ),
74aee2dc
DO
2039 '9.1.614' => array
2040 (
2041 'dict_key' => 175,
2042 'text' => 'WS-C3560G-24PS: 24 RJ-45/10-100-1000T(X) + 4 SFP/1000',
6be06cbb 2043 'processors' => array ('catalyst-chassis-25-to-28-1000SFP', 'catalyst-chassis-any-1000T'),
74aee2dc
DO
2044 ),
2045 '9.1.615' => array
2046 (
2047 'dict_key' => 173,
2048 'text' => 'WS-C3560G-24TS: 24 RJ-45/10-100-1000T(X) + 4 SFP/1000',
6be06cbb 2049 'processors' => array ('catalyst-chassis-25-to-28-1000SFP', 'catalyst-chassis-any-1000T'),
74aee2dc
DO
2050 ),
2051 '9.1.616' => array
2052 (
2053 'dict_key' => 176,
2054 'text' => 'WS-C3560G-48PS: 48 RJ-45/10-100-1000T(X) + 4 SFP/1000',
6be06cbb 2055 'processors' => array ('catalyst-chassis-49-to-52-1000SFP', 'catalyst-chassis-any-1000T'),
74aee2dc
DO
2056 ),
2057 '9.1.617' => array
2058 (
2059 'dict_key' => 174,
2060 'text' => 'WS-C3560G-48TS: 48 RJ-45/10-100-1000T(X) + 4 SFP/1000',
6be06cbb 2061 'processors' => array ('catalyst-chassis-49-to-52-1000SFP', 'catalyst-chassis-any-1000T'),
74aee2dc
DO
2062 ),
2063 '9.1.626' => array
2064 (
2065 'dict_key' => 147,
56a797ef 2066 'text' => 'WS-C4948: 48 RJ-45/10-100-1000T(X) + 4 SFP/1000 + 1 RJ-45/100TX (OOB mgmt)',
ce4f4d96 2067 'processors' => array ('catalyst-chassis-45-to-48-combo-1000SFP', 'catalyst-chassis-any-1000T', 'catalyst-chassis-mgmt'),
74aee2dc 2068 ),
103ed845
M
2069 '9.1.633' => array
2070 (
2071 'dict_key' => 169,
2072 'text' => 'WS-C3560-24TS: 24 RJ-45/10-100TX + 2 SFP/1000',
2073 'processors' => array ('catalyst-chassis-any-1000SFP', 'catalyst-chassis-any-100TX'),
2074 ),
2075 '9.1.634' => array
2076 (
2077 'dict_key' => 170,
2078 'text' => 'WS-C3560-48TS: 48 RJ-45/10-100TX + 4 SFP/1000',
2079 'processors' => array ('catalyst-chassis-any-1000SFP', 'catalyst-chassis-any-100TX'),
2080 ),
74aee2dc
DO
2081 '9.1.659' => array
2082 (
2083 'dict_key' => 377,
56a797ef 2084 'text' => 'WS-C4948-10GE: 48 RJ-45/10-100-1000T(X) + 2 X2/10000 + 1 RJ-45/100TX (OOB mgmt)',
cbc30061 2085 'processors' => array ('catalyst-chassis-uplinks-10000X2', 'catalyst-chassis-uplinks-1000T', 'catalyst-chassis-mgmt'),
74aee2dc 2086 ),
103ed845 2087 '9.1.694' => array
d6d3dbea 2088 (
103ed845
M
2089 'dict_key' => 1710,
2090 'text' => 'WS-C2960-24TC-L: 24 RJ-45/10-100TX + 2 combo-gig',
2091 'processors' => array ('catalyst-chassis-1-to-2-combo-1000SFP', 'catalyst-chassis-any-1000T', 'catalyst-chassis-any-100TX'),
d6d3dbea 2092 ),
103ed845 2093 '9.1.695' => array
85882e0b 2094 (
103ed845
M
2095 'dict_key' => 1590,
2096 'text' => 'WS-C2960-48TC-L: 48 RJ-45/10-100TX + 2 combo-gig',
2097 'processors' => array ('catalyst-chassis-1-to-2-combo-1000SFP', 'catalyst-chassis-any-1000T', 'catalyst-chassis-any-100TX'),
85882e0b 2098 ),
103ed845 2099 '9.1.696' => array
74aee2dc 2100 (
103ed845
M
2101 'dict_key' => 167,
2102 'text' => 'WS-C2960G-24TC-L: 20 RJ-45/10-100-1000T(X) + 4 combo-gig',
2103 'processors' => array ('catalyst-chassis-21-to-24-combo-1000SFP', 'catalyst-chassis-any-1000T'),
74aee2dc 2104 ),
103ed845 2105 '9.1.697' => array
74aee2dc 2106 (
103ed845
M
2107 'dict_key' => 166,
2108 'text' => 'WS-C2960G-48TC-L: 44 RJ-45/10-100-1000T(X) + 4 combo-gig',
2109 'processors' => array ('catalyst-chassis-45-to-48-combo-1000SFP', 'catalyst-chassis-any-1000T'),
74aee2dc 2110 ),
103ed845 2111 '9.1.716' => array
b3f84e8e 2112 (
103ed845
M
2113 'dict_key' => 164,
2114 'text' => 'WS-C2960-24TT-L: 24 RJ-45/10-100TX + 2 RJ-45/10-100-1000T(X)',
2115 'processors' => array ('catalyst-chassis-any-100TX', 'catalyst-chassis-any-1000T'),
b3f84e8e 2116 ),
103ed845 2117 '9.1.717' => array
74aee2dc 2118 (
103ed845
M
2119 'dict_key' => 1572,
2120 'text' => 'WS-C2960-48TT-L: 48 RJ-45/10-100TX + 2 RJ-45/10-100-1000T(X)',
2121 'processors' => array ('catalyst-chassis-any-100TX', 'catalyst-chassis-any-1000T'),
74aee2dc 2122 ),
103ed845 2123 '9.1.724' => array
8a4bee49 2124 (
103ed845
M
2125 'dict_key' => 160,
2126 'text' => 'WS-CE500-24TT: 24 RJ-45/10-100TX + 2 RJ-45/10-100-1000T(X)',
2127 'processors' => array ('catalyst-any-100TX', 'catalyst-any-1000T'),
2128 ),
2129 '9.1.727' => array
2130 (
2131 'dict_key' => 161,
2132 'text' => 'WS-CE500G-12TC: 8 RJ-45/10-100/1000T(X) + 4 combo',
ce4f4d96 2133 'processors' => array ('catalyst-9-to-12-combo-1000SFP', 'catalyst-9-to-12-1000T', 'catalyst-any-1000T'),
8a4bee49 2134 ),
74aee2dc
DO
2135 '9.1.749' => array
2136 (
2137 'dict_key' => 989,
2138 'text' => 'WS-CBS3030-DEL: 10 internal/10-100-1000T(X) + 2 RJ-45/10-100-1000T(X) + 4 SFP/1000',
71d6b313 2139 'processors' => array ('catalyst-blade-11-to-12-1000T', 'catalyst-blade-13-to-16-1000SFP', 'catalyst-blade-any-bp/1000T'),
74aee2dc 2140 ),
103ed845
M
2141 '9.1.793' => array
2142 (
2143 'dict_key' => 1575,
2144 'text' => 'WS-C3560E-24TD: 24 RJ-45/10-100-1000T(X) + 2 X2/10000 w/TwinGig + OOBM',
2145 'processors' => array
2146 (
2147 'catalyst-chassis-25-to-28-1000SFP', // TwinGig
2148 'catalyst-chassis-any-1000T',
2149 'catalyst-chassis-uplinks-10000X2',
2150 'catalyst-chassis-mgmt',
2151 ),
2152 ),
2153 '9.1.794' => array
2154 (
2155 'dict_key' => 1574,
2156 'text' => 'WS-C3560E-48TD: 48 RJ-45/10-100-1000T(X) + 2 X2/10000 w/TwinGig + OOBM',
2157 'processors' => array
2158 (
2159 'catalyst-chassis-49-to-52-1000SFP', // TwinGig
2160 'catalyst-chassis-any-1000T',
2161 'catalyst-chassis-uplinks-10000X2',
2162 'catalyst-chassis-mgmt',
2163 ),
2164 ),
2165 '9.1.797' => array
2166 (
2167 'dict_key' => 139,
832482c1 2168 'text' => 'WS-C3560-8PC 8 RJ-45/10-100TX + 1 combo-gig',
3b82e075 2169 'processors' => array ('catalyst-chassis-1-to-2-combo-1000SFP', 'catalyst-chassis-any-1000T', 'catalyst-chassis-any-100TX'),
103ed845 2170 ),
1454fe90
M
2171 '9.1.798' => array
2172 (
2173 'dict_key' => 165,
2174 'text' => 'WS-C2960-8TC-L 8 RJ-45/10-100TX + 1 combo-gig',
3b82e075 2175 'processors' => array ('catalyst-chassis-1-to-2-combo-1000SFP', 'catalyst-chassis-any-1000T', 'catalyst-chassis-any-100TX'),
1454fe90 2176 ),
103ed845
M
2177 '9.1.799' => array
2178 (
2179 'dict_key' => 168,
2180 'text' => 'WS-C2960G-8TC-L: 7 RJ-45/10-100-1000T(X) + 1 combo-gig',
2181 'processors' => array ('catalyst-chassis-8-combo-1000SFP', 'catalyst-chassis-any-1000T'),
2182 ),
74aee2dc
DO
2183 '9.1.920' => array
2184 (
2185 'dict_key' => 795,
2186 'text' => 'WS-CBS3032-DEL: 16 internal/10-100-1000T(X) + 4 RJ-45/10-100-1000T(X) + 4 SFP/1000',
71d6b313 2187 'processors' => array ('catalyst-blade-17-to-20-1000T', 'catalyst-blade-21-to-24-1000SFP', 'catalyst-blade-any-bp/1000T'),
74aee2dc 2188 ),
103ed845 2189 '9.1.927' => array
2217e284 2190 (
103ed845
M
2191 'dict_key' => 140,
2192 'text' => 'WS-C2960-48TC-S: 48 RJ-45/10-100TX + 2 combo-gig',
2193 'processors' => array ('catalyst-chassis-1-to-2-combo-1000SFP', 'catalyst-chassis-any-1000T', 'catalyst-chassis-any-100TX'),
2217e284 2194 ),
103ed845 2195 '9.1.928' => array
7e87a291 2196 (
103ed845
M
2197 'dict_key' => 1894,
2198 'text' => 'WS-C2960-24TC-S: 24 RJ-45/10-100TX + 2 combo-gig',
2199 'processors' => array ('catalyst-chassis-1-to-2-combo-1000SFP', 'catalyst-chassis-any-100TX'),
7e87a291 2200 ),
103ed845 2201 '9.1.930' => array
86d614c3 2202 (
103ed845
M
2203 'dict_key' => 1607,
2204 'text' => 'WS-C3560E-12D-S: 12 X2/10000 w/TwinGig + OOBM',
2205 'processors' => array
2206 (
2207 'catalyst-chassis-any-1000SFP',
2208 'catalyst-chassis-uplinks-10000X2',
2209 'catalyst-chassis-mgmt',
2210 ),
86d614c3 2211 ),
103ed845 2212 '9.1.950' => array
a9bd9e98 2213 (
103ed845
M
2214 'dict_key' => 1347,
2215 'text' => 'WS-C2960-24PC-L: 24 RJ-45/10-100TX + 2 combo-gig',
2216 'processors' => array ('catalyst-chassis-1-to-2-combo-1000SFP', 'catalyst-chassis-any-1000T', 'catalyst-chassis-any-100TX'),
a9bd9e98 2217 ),
103ed845 2218 '9.1.956' => array
65b4b21a 2219 (
103ed845
M
2220 'dict_key' => 1721,
2221 'text' => 'WS-C3560E-12SD: 12 SFP/1000 +2 X2/10000 + OOBM',
65b4b21a
DO
2222 'processors' => array
2223 (
103ed845 2224 'catalyst-chassis-any-1000SFP',
65b4b21a
DO
2225 'catalyst-chassis-uplinks-10000X2',
2226 'catalyst-chassis-mgmt',
2227 ),
2228 ),
103ed845
M
2229 '9.1.999' => array
2230 (
eda2b50a 2231 'dict_key' => 2038,
832482c1 2232 'text' => 'WS-CBS3012-IBM 14 10-100-1000T + 1 10/100T + 4 RJ45/10/100/1000T(X)',
103ed845
M
2233 'processors' => array ('catalyst-chassis-any-1000T','catalyst-chassis-any-100TX'),
2234 ),
2235 '9.1.1000' => array
2236 (
eda2b50a 2237 'dict_key' => 2038,
832482c1 2238 'text' => 'WS-CBS3012-IBM-I 14 10-100-1000T + 1 10/100T + 4 RJ45/10/100/1000T(X)',
103ed845
M
2239 'processors' => array ('catalyst-chassis-any-1000T','catalyst-chassis-any-100TX'),
2240 ),
2241 '9.1.1005' => array
2242 (
2243 'dict_key' => 1573,
2244 'text' => 'WS-C2960-48TT-S: 48 RJ-45/10-100TX + 2 RJ-45/10-100-1000T(X)',
2245 'processors' => array ('catalyst-chassis-any-100TX', 'catalyst-chassis-any-1000T'),
2246 ),
2247 '9.1.1007' => array
2248 (
2249 'dict_key' => 2030,
2250 'text' => 'ME-3400EG-2CS-A: 2 combo ports + 4 SFP',
2251 'processors' => array ('catalyst-chassis-1-to-2-combo-1000T', 'catalyst-chassis-any-1000SFP', 'catalyst-chassis-mgmt'),
2252 ),
712010be
AA
2253 '9.1.1016' => array
2254 (
2255 'dict_key' => 1370,
2256 'text' => 'WS-C2960-48PST-L: 48 RJ-45/10-100TX PoE + 2 SFP/1000 + 2 RJ-45/10-100-1000T(X)',
2257 'processors' => array
2258 (
2259 'catalyst-chassis-any-100TX',
2260 'catalyst-chassis-1-to-2-1000SFP',
2261 'catalyst-chassis-uplinks-1000T',
2262 ),
2263 ),
ba093fed
AD
2264 '9.1.1021' => array
2265 (
2266 'dict_key' => 1806,
2267 'text' => 'WS-C3560V2-24PS: 24 RJ-45/10-100TX + 2 SFP/1000',
2268 'processors' => array ('catalyst-chassis-1-to-2-1000SFP', 'catalyst-chassis-any-100TX'),
2269 ),
b14a4982
M
2270 '9.1.1024' => array
2271 (
2272 'dict_key' => 1805,
2273 'text' => 'WS-C3560V2-48TS: 48 RJ-45/10-100TX + 4 SFP/1000',
2274 'processors' => array ('catalyst-chassis-any-1000SFP', 'catalyst-chassis-any-100TX'),
2275 ),
103ed845
M
2276 '9.1.1025' => array
2277 (
2278 'dict_key' => 1807,
2279 'text' => 'WS-C3560V2-48PS: 48 RJ-45/10-100TX + 4 SFP/1000',
2280 'processors' => array ('catalyst-chassis-any-1000SFP', 'catalyst-chassis-any-100TX'),
2281 ),
2282 '9.1.1104' => array
2283 (
2284 'dict_key' => 1348,
2285 'text' => 'WS-C2350-48TD: 48 RJ-45/10-100-1000T(X) + 2 X2/10000 w/TwinGig option',
2286 'processors' => array
2287 (
2288 'catalyst-chassis-49-to-52-1000SFP', // TwinGig actually
2289 'catalyst-chassis-any-1000T',
2290 'catalyst-chassis-uplinks-10000X2',
2291 'catalyst-chassis-mgmt',
2292 ),
2293 ),
2294 '9.1.1147' => array
2295 (
2296 'dict_key' => 1897,
2297 'text' => 'WS-C2960-24PC-S: 24 RJ-45/10-100TX + 2 combo-gig',
2298 'processors' => array ('catalyst-chassis-1-to-2-combo-1000SFP', 'catalyst-chassis-any-1000T', 'catalyst-chassis-any-100TX'),
2299 ),
38c9bb20
DO
2300 '9.1.1208' => array
2301 (
2302 'dict_key' => 1394,
2303 'text' => 'WS-C2960S-24PS-L: 24 RJ-45/10-100-1000T(X) PoE+ + 4 SFP/1000',
2304 'processors' => array
2305 (
2306 'catalyst-chassis-mgmt',
2307 'catalyst-stack-25-to-28-SFP',
2308 'catalyst-stack-any-1000T',
2309 ),
2310 ),
13b28c20
DO
2311 '9.1.1227' => array
2312 (
2313 'dict_key' => 1577,
2314 'text' => 'WS-C3560X-48T: 48 RJ-45/10-100-1000T(X) + network module + OOBM',
2315 'processors' => array
2316 (
2317 'C3KX-NM-10000',
2318 'C3KX-NM-1000',
2319 'catalyst-chassis-any-1000T',
2320 'catalyst-chassis-mgmt',
2321 ),
2322 ),
38a5fa7f
AD
2323 '9.1.1245' => array
2324 (
2325 'dict_key' => 2211,
2326 'text' => 'CGS-2520-24TC: 24 RJ-45/10-100T(X) + 2 combo gig',
2327 'processors' => array ('catalyst-chassis-1-to-2-combo-1000SFP', 'catalyst-chassis-any-1000T', 'catalyst-chassis-any-100TX'),
2328 ),
103ed845
M
2329 '9.1.1257' => array
2330 (
2331 'dict_key' => 1391,
2332 'text' => 'WS-C2960G-24TS-S: 24 RJ-45/10-100-1000T(X)',
2333 'processors' => array ('catalyst-chassis-25-to-26-1000SFP', 'catalyst-chassis-mgmt', 'catalyst-chassis-any-1000T'),
2334 ),
2335 '9.1.1265' => array
2336 (
2337 'dict_key' => 1394,
2338 'text' => 'WS-C2960S-24PS-L: 24 RJ-45/10-100-1000T(X) + 4 SFP/1000',
2339 'processors' => array ('catalyst-stack-25-to-28-SFP', 'catalyst-chassis-mgmt', 'catalyst-stack-any-1000T'),
2340 ),
b475f795
DO
2341 '9.1.1292' => array
2342 (
b0021c43 2343 'dict_key' => 1606,
b475f795
DO
2344 'text' => 'WS-C2360-48TD: 48 RJ-45 GigE + 4 SFP+/10000',
2345 'processors' => array ('catalyst-chassis-any-1000T', 'catalyst-chassis-mgmt', 'catalyst-chassis-uplinks-10000SFP+'),
2346 ),
103ed845
M
2347 '9.1.1316' => array
2348 (
2349 'dict_key' => 2029,
2350 'text' => 'WS-C2960CG-8TC-L: 8 RJ-45/10-100-1000T(X) + 2 combo ports',
2351 'processors' => array ('catalyst-9-to-10-combo-1000SFP', 'catalyst-chassis-any-1000T'),
2352 ),
bec7369f
JG
2353 '9.1.1317' => array
2354 (
2355 'dict_key' => 2059,
2356 'text' => 'WS-C3560CG-8PC-S: 8 RJ-45/10-100-1000T(X) + 2 combo ports',
2357 'processors' => array ('catalyst-9-to-10-combo-1000SFP', 'catalyst-chassis-any-1000T'),
2358 ),
103ed845
M
2359 '9.1.1327' => array
2360 (
2361 'dict_key' => 2026,
2362 'text' => 'WS-C4948E: 48 RJ-45/10-100-1000T(X) + 4 SFP+/10000 + 1 RJ-45/100TX (OOB mgmt)',
2363 'processors' => array ('catalyst-chassis-uplinks-10000SFP+', 'catalyst-chassis-uplinks-1000T', 'catalyst-chassis-mgmt'),
2364 ),
2365 '9.1.1650' => array
2366 (
2367 'dict_key' => 1903,
2368 'text' => 'WS-C2960S-F48LPS-L: 48 RJ-45/10-100TX + 4 SFP/1000',
2369 'processors' => array ('catalyst-stack-1-to-4-SFP', 'catalyst-chassis-mgmt', 'catalyst-stack-any-100TX'),
2370 ),
cd558d4f
AA
2371 '9.1.1693' => array
2372 (
2373 'dict_key' => 2112,
2374 'text' => 'WS-C2960X-24PD-L: 24 RJ-45/10-100-1000T(X) + 2 SFP+/10000',
2375 'processors' => array ('catalyst-stack-uplinks-10000SFP+', 'catalyst-chassis-mgmt', 'catalyst-stack-any-1000T'),
2b31f3dc
AA
2376
2377 ),
2378 '9.1.1696' => array
2379 (
2380 'dict_key' => 2116,
2381 'text' => 'WS-C2960X-48LPS-L: 48 RJ-45/10-100-1000T(X) + 4 SFP/1000',
2382 'processors' => array ('catalyst-stack-49-to-52-SFP', 'catalyst-chassis-mgmt', 'catalyst-stack-any-1000T'),
cd558d4f
AA
2383
2384 ),
2385 '9.1.1697' => array
2386 (
2387 'dict_key' => 2117,
2388 'text' => 'WS-C2960X-24PS-L: 24 RJ-45/10-100-1000T(X) + 4 SFP+/10000',
2389 'processors' => array ('catalyst-stack-uplinks-10000SFP+', 'catalyst-chassis-mgmt', 'catalyst-stack-any-1000T'),
2390
da7b0355
AD
2391 ),
2392 '9.1.1704' => array
2393 (
2394 'dict_key' => 2122,
2395 'text' => 'WS-C2960X-24TS-LL: 24 RJ-45/10-100-1000T(X) + 2 SFP/1000',
2396 'processors' => array ('catalyst-chassis-25-to-26-1000SFP', 'catalyst-chassis-mgmt', 'catalyst-chassis-any-1000T'),
2397
cd558d4f 2398 ),
44277e87
AD
2399 '9.5.18' => array
2400 (
2401 'dict_key' => 2094,
2402 'text' => 'WS-C1924-A: 24 RJ-45/10TX + 2 100TX',
2403 'processors' => array ('catalyst-a-to-b-100TX', 'catalyst-any-10TX'),
2404 ),
65e11216
AD
2405 '9.5.42' => array
2406 (
2407 'dict_key' => 1796,
2408 'text' => 'WS-C2948G-L3: 48 RJ-45/10-100TX + 2 SFP/1000 ports',
2409 'processors' => array ('catalyst-2948-49-to-50-SFP', 'catalyst-2948-any-100TX'),
2410 'ifDescrOID' => 'entPhysicalName',
2411 ),
1329ef2f
RD
2412 '9.6.1.82.8.3' => array
2413 (
2414 'dict_key' => 2091,
2415 'text' => 'SF 302-08MP: 8 RJ-45/10/100TX PWR + 2 combo-gig',
2416 'processors' => array
2417 (
2418 'generic-gi-1-to-2-combo-1000SFP',
2419 'generic-gi-1-to-2-1000T',
2420 'generic-fa-any-100TX',
2421 ),
2422 'ifDescrOID' => 'ifName',
2423 ),
40b1e115
AD
2424 '9.6.1.82.24.2' => array
2425 (
2426 'dict_key' => 1784,
2427 'text' => 'SF 300-24P: RJ-45/10/100 + 2 RJ-45/10/100/1000T(X) + 2 combo-gig',
2428 'processors' => array
2429 (
2430 'generic-gi-3-to-4-combo-1000SFP',
2431 'generic-gi-3-to-4-combo-1000T',
2432 'generic-gi-1-to-2-1000T',
2433 'generic-fa-any-100TX',
2434 ),
2435 'ifDescrOID' => 'ifName',
2436 ),
b0021c43
AD
2437 '9.6.1.82.48.1' => array
2438 (
2439 'dict_key' => 1612,
2440 'text' => 'SF 300-48: 48 RJ-45/10/100 + 2 RJ-45/10-100-1000T(X) + 2 combo-gig',
2441 'processors' => array
2442 (
2443 'generic-gi-3-to-4-combo-1000SFP',
2444 'generic-gi-3-to-4-combo-1000T',
2445 'generic-gi-1-to-2-1000T',
2446 'generic-fa-any-100TX',
2447 ),
2448 'ifDescrOID' => 'ifName',
2449 ),
40b1e115
AD
2450 '9.6.1.83.10.1' => array
2451 (
2452 'dict_key' => 1785,
2453 'text' => 'SG 300-10: 8 RJ-45/10/100/1000T(X) + 2 combo-gig',
2454 'processors' => array
2455 (
2456 'generic-gi-9-to-10-combo-1000SFP',
2457 'generic-gi-9-to-10-combo-1000T',
2458 'generic-gi-any-1000T',
2459 ),
2460 'ifDescrOID' => 'ifName',
2461 ),
2462 '9.6.1.83.52.1' => array
2463 (
2464 'dict_key' => 1783,
2465 'text' => 'SG 300-52: 50 RJ-45/10/100/1000T(X) + 2 combo-gig',
2466 'processors' => array
2467 (
2468 'generic-gi-51-to-52-combo-1000SFP',
2469 'generic-gi-51-to-52-combo-1000T',
2470 'generic-gi-any-1000T',
2471 ),
2472 'ifDescrOID' => 'ifName',
2473 ),
74aee2dc
DO
2474 '9.12.3.1.3.719' => array
2475 (
2476 'dict_key' => 960,
2477 'text' => 'N5K-C5020: 40 SFP+/10000',
e7662d90 2478 'processors' => array ('nexus-any-10000SFP+', 'nexus-mgmt'),
74aee2dc 2479 ),
bc45a3a4
DO
2480 '9.12.3.1.3.798' => array
2481 (
2482 'dict_key' => 959,
2483 'text' => 'N5K-C5010: 20 SFP+/10000',
2484 'processors' => array ('nexus-any-10000SFP+', 'nexus-mgmt'),
2485 ),
0533b64d
DO
2486 '9.12.3.1.3.1008' => array
2487 (
2488 'dict_key' => 1412,
2489 'text' => 'N5K-C5548P: 32 SFP+/10000',
2490 'processors' => array ('nexus-any-10000SFP+', 'nexus-mgmt'),
2491 ),
473dd02e
JT
2492 '9.12.3.1.3.1084' => array
2493 (
2494 'dict_key' => 1412,
2495 'text' => 'N5K-C5548P: 32 SFP+/10000',
2496 'processors' => array ('nexus-any-10000SFP+', 'nexus-mgmt'),
2497 ),
a5e2273a
AD
2498 '11.2.3.7.11.9' => array
2499 (
2500 'dict_key' => 1086,
2501 'text' => 'J4121A: modular system',
2502 'processors' => array ('procurve-modular-100TX'),
2503 ),
13b28c20
DO
2504 '11.2.3.7.11.19' => array
2505 (
2506 'dict_key' => 859,
2507 'text' => 'J4813A: 24 RJ-45/10-100TX + 2 modules of varying type',
2508 'processors' => array ('procurve-chassis-100TX'),
2509 ),
6249647d
AD
2510 '11.2.3.7.11.29' => array
2511 (
2512 'dict_key' => 866,
2513 'text' => 'J4899A: 48 RJ-45/10-100TX + 2 RJ-45/10-100-1000T(X)',
2514 'processors' => array ('procurve-49-to-50-1000T', 'procurve-chassis-100TX'),
2515 ),
4bbb87a3
AD
2516 '11.2.3.7.11.31' => array
2517 (
2518 'dict_key' => 870,
2519 'text' => 'J4903A: 24 RJ-45/10-100-1000T(X)',
2520 'processors' => array ('procurve-chassis-1000T'),
2521 ),
56a797ef
DO
2522 '11.2.3.7.11.32' => array
2523 (
2524 'dict_key' => 871,
2525 'text' => 'J4904A: 48 RJ-45/10-100-1000T(X)',
2526 'processors' => array ('procurve-chassis-1000T'),
2527 ),
103ed845
M
2528 '11.2.3.7.11.33.4.1.1' => array
2529 (
2530 'dict_key' => 1605,
2531 'text' => 'HP GbE2c w/SFP',
2532 'processors' => array
2533 (
2534 'gbe2csfp-1-to-16',
2535 'gbe2csfp-17',
2536 'gbe2csfp-18',
2537 'gbe2csfp-19',
2538 'gbe2csfp-20',
2539 'gbe2csfp-21sfp',
2540 'gbe2csfp-22sfp',
2541 'gbe2csfp-23sfp',
2542 'gbe2csfp-24sfp',
2543 'gbe2csfp-21',
2544 'gbe2csfp-22',
2545 'gbe2csfp-23',
2546 'gbe2csfp-24',
2547 ),
2548 ),
4bbb87a3
AD
2549 '11.2.3.7.11.34' => array
2550 (
2551 'dict_key' => 864,
f6cab562
AD
2552 'text' => 'J4900A: 24 RJ-45/10-100TX + 2 combo-gig',
2553 'processors' => array ('procurve-25-to-26-combo-1000SFP', 'procurve-25-to-26-1000T', 'procurve-chassis-100TX'),
4bbb87a3 2554 ),
74aee2dc
DO
2555 '11.2.3.7.11.35' => array
2556 (
2557 'dict_key' => 867,
4bbb87a3 2558 'text' => 'J8165A: 48 RJ-45/10-100TX PoE + 2 RJ-45/10-100-1000T(X)',
56a797ef
DO
2559 'processors' => array ('procurve-49-to-50-1000T', 'procurve-chassis-100TX'),
2560 ),
103ed845
M
2561 '11.2.3.7.11.36' => array
2562 (
2563 'dict_key' => 865,
2564 'text' => 'J8164A: 24 RJ-45/10-100TX PoE + 2 RJ-45/10-100-1000T(X)',
2565 'processors' => array ('procurve-25-to-26-1000T', 'procurve-chassis-100TX'),
2566 ),
a5e2273a 2567 '11.2.3.7.11.44' => array
56a797ef 2568 (
a5e2273a
AD
2569 'dict_key' => 866,
2570 'text' => 'J4899B: 48 RJ-45/10-100TX + 2 RJ-45/10-100-1000T(X)',
2571 'processors' => array ('procurve-49-to-50-1000T', 'procurve-chassis-100TX'),
74aee2dc 2572 ),
f6cab562
AD
2573 '11.2.3.7.11.45' => array
2574 (
2575 'dict_key' => 864,
2576 'text' => 'J4900B: 24 RJ-45/10-100TX + 2 combo-gig',
2577 'processors' => array ('procurve-25-to-26-combo-1000SFP', 'procurve-25-to-26-1000T', 'procurve-chassis-100TX'),
2578 ),
4bbb87a3
AD
2579 '11.2.3.7.11.53' => array
2580 (
2581 'dict_key' => 881,
2582 'text' => 'J8773A: modular system',
2583 'processors' => array ('procurve-modular-1000T'),
2584 ),
659ca0f3
AD
2585 '11.2.3.7.11.58' => array
2586 (
2587 'dict_key' => 876,
2588 'text' => 'J8692A: 20 RJ-45/10-100-1000T(X) + 4 combo-gig',
2589 'processors' => array ('procurve-21-to-24-combo-1000SFP', 'procurve-chassis-1000T'),
2590 ),
f192f14b
AD
2591 '11.2.3.7.11.59' => array
2592 (
2593 'dict_key' => 877,
2594 'text' => 'J8693A: 44 RJ-45/10-100-1000T(X) + 4 combo-gig',
2595 'processors' => array ('procurve-45-to-48-combo-1000SFP', 'procurve-chassis-1000T'),
2596 ),
10ab4841
AD
2597 '11.2.3.7.11.62' => array
2598 (
2599 'dict_key' => 855,
659ca0f3 2600 'text' => 'J9020A: 48 RJ-45/10-100TX + 2 RJ-45/10-1000-1000T(X) + 2 SFP-1000',
10ab4841
AD
2601 'processors' => array ('procurve-51-to-52-1000SFP', 'procurve-49-to-50-1000T', 'procurve-chassis-100TX'),
2602 ),
13b28c20
DO
2603 '11.2.3.7.11.63' => array
2604 (
2605 'dict_key' => 868,
2606 'text' => 'J9021A: 20 RJ-45/10-100-1000T(X) + 4 combo-gig',
2607 'processors' => array ('procurve-21-to-24-combo-1000SFP', 'procurve-chassis-1000T'),
2608 ),
2cd74c44
M
2609 '11.2.3.7.11.64' => array
2610 (
2611 'dict_key' => 869,
2612 'text' => 'J9022A: 44 RJ-45/10-100-1000T(X) + 4 combo-gig',
2613 'processors' => array ('procurve-45-to-48-combo-1000SFP', 'procurve-chassis-1000T'),
2614 ),
13b28c20
DO
2615 '11.2.3.7.11.65' => array
2616 (
2617 'dict_key' => 850,
2618 'text' => 'J9028A: 22 RJ-45/10-100-1000T(X) + 2 combo-gig',
2619 'processors' => array ('smc2-combo-23-to-24', 'smc2-any-1000T'),
2620 ),
a5e2273a
AD
2621 '11.2.3.7.11.68' => array
2622 (
2623 'dict_key' => 873,
2624 'text' => 'J9050A: 48 RJ-45/10-100-1000T',
2625 'processors' => array ('procurve-chassis-1000T'),
2626 ),
cca3025a
SM
2627 '11.2.3.7.11.76' => array
2628 (
2629 'dict_key' => 860,
2630 'text' => 'J9085A: 24 RJ-45/10-100TX + 2 1000T + 2 SFP-1000',
2631 'processors' => array ('procurve-25-to-26-1000T', 'procurve-27-to-28-1000SFP', 'procurve-chassis-100TX'),
2632 ),
83aedacd
AD
2633 '11.2.3.7.11.78' => array
2634 (
2635 'dict_key' => 861,
2636 'text' => 'J9087A: 24 RJ-45/10-100TX PoE + 2 1000T + 2 SFP-1000',
2637 'processors' => array ('procurve-25-to-26-1000T', 'procurve-27-to-28-1000SFP', 'procurve-chassis-100TX'),
2638 ),
103ed845
M
2639 '11.2.3.7.11.79' => array
2640 (
2641 'dict_key' => 863,
2642 'text' => 'J9089A: 48 RJ-45/10-100TX PoE + 2 1000T + 2 SFP-1000',
2643 'processors' => array ('procurve-49-to-50-1000T', 'procurve-51-to-52-1000SFP', 'procurve-chassis-100TX'),
2644 ),
83aedacd
AD
2645 '11.2.3.7.11.80' => array
2646 (
2647 'dict_key' => 1570,
2648 'text' => 'J9086A: 24 RJ-45/10-100TX 12 PoE + 2 1000T + 2 SFP-1000',
2649 'processors' => array ('procurve-25-to-26-1000T', 'procurve-27-to-28-1000SFP', 'procurve-chassis-100TX'),
2650 ),
d6d3dbea
M
2651 '11.2.3.7.11.81' => array
2652 (
2653 'dict_key' => 850,
2654 'text' => 'J9028B: 22 RJ-45/10-100-1000T(X) + 2 combo-gig',
2655 'processors' => array ('smc2-combo-23-to-24', 'smc2-any-1000T'),
2656 ),
fdc0f5fa
AD
2657 '11.2.3.7.11.84' => array
2658 (
2659 'dict_key' => 2096,
2660 'text' => 'J9146A: 20 RJ-45/10-100-1000T(X) + 4 combo-gig + varying uplinks',
2661 'processors' => array ('procurve-21-to-24-combo-1000SFP', 'procurve-chassis-1000T'),
2662 ),
103ed845
M
2663 '11.2.3.7.11.85' => array
2664 (
2665 'dict_key' => 1600,
2666 'text' => 'J9148A: 44 RJ-45/10-100-1000T(X) + 4 combo-gig + varying uplinks',
2667 'processors' => array ('procurve-45-to-48-combo-1000SFP', 'procurve-chassis-1000T'),
2668 ),
13b28c20
DO
2669 '11.2.3.7.11.86' => array
2670 (
2671 'dict_key' => 1571,
2672 'text' => 'J9145A: 20 RJ-45/10-100-1000T(X) + 4 combo-gig + varying uplinks',
2673 'processors' => array ('procurve-21-to-24-combo-1000SFP', 'procurve-chassis-1000T'),
2674 ),
4b43f713
DO
2675 '11.2.3.7.11.87' => array
2676 (
2677 'dict_key' => 1349,
13b28c20 2678 'text' => 'J9147A: 44 RJ-45/10-100-1000T(X) + 4 combo-gig + varying uplinks',
4b43f713
DO
2679 'processors' => array ('procurve-45-to-48-combo-1000SFP', 'procurve-chassis-1000T'),
2680 ),
db5d7da5
AD
2681 '11.2.3.7.11.88' => array
2682 (
2683 'dict_key' => 1349,
2684 'text' => 'J9279A: 22 RJ-45/10-100-1000T(X) + 2 combo-gig + varying uplinks',
2685 'processors' => array ('procurve-23-to-24-combo-1000SFP', 'procurve-chassis-1000T'),
2686 ),
10ab4841
AD
2687 '11.2.3.7.11.89' => array
2688 (
2689 'dict_key' => 857,
2690 'text' => 'J9280A: 44 RJ-45/10-100-1000T(X) + 4 combo-gig + varying uplinks',
2691 'processors' => array ('procurve-45-to-48-combo-1000SFP', 'procurve-chassis-1000T'),
2692 ),
a437a607
AD
2693 '11.2.3.7.11.94' => array
2694 (
2695 'dict_key' => 1967,
2696 'text' => 'J9137A: 8 RJ-45/10-100TX PoE + 2 combo-gig',
2697 'processors' => array ('procurve-9-to-10-combo-1000SFP', 'procurve-9-to-10-1000T', 'procurve-chassis-100TX'),
2698 ),
4bbb87a3
AD
2699 '11.2.3.7.11.95' => array
2700 (
2701 'dict_key' => 1711,
2702 'text' => 'J9138A: 24 RJ-45/10-100TX PoE + 2 1000T + 2 combo-gig',
a437a607 2703 'processors' => array ('procurve-25-to-26-1000T', 'procurve-27-to-28-combo-1000SFP', 'procurve-27-to-28-1000T', 'procurve-chassis-100TX'),
13b28c20 2704 ),
5d930daf
AD
2705 '11.2.3.7.11.105' => array
2706 (
2707 'dict_key' => 1641,
2708 'text' => 'J9452A: 48 RJ-45/10-100-1000T + 2 SFP-10000+',
2709 'processors' => array ('procurve-49-to-52-10000SFP+', 'procurve-chassis-1000T'),
2710 ),
275b0cdb
AD
2711 '11.2.3.7.11.154' => array
2712 (
2713 'dict_key' => 2213,
2714 'text' => 'J9728A: 44 RJ-45/10-100-1000T + 4 combo-gig',
2715 'processors' => array ('procurve-45-to-48-combo-1000SFP', 'procurve-chassis-1000T'),
2716 ),
e8eb4301
RS
2717 '43.1.16.4.3.8' => array
2718 (
2719 'dict_key' => 780,
2720 'text' => '5500G-EI 48-Port: 44 RJ-45/10-100-1000T(X) + 4 combo-gig',
2721 'processors' => array ('3com-49-to-50-1000SFP', '3com-51-to-52-1000SFP', '3com-any-1000T'),
2722 ),
75016247
RD
2723 '43.1.16.4.3.21' => array
2724 (
2725 'dict_key' => 766,
2726 'text' => '4500 26-port: 24 100TX + 2 SFP/1000T combo',
ff41d8ee 2727 'processors' => array ('3com-27-to-28-1000T', '3com-25-to-26-1000SFP', '3com-any-100TX'),
75016247 2728 ),
ff41d8ee 2729 '43.1.16.4.3.22' => array
75016247
RD
2730 (
2731 'dict_key' => 767,
2732 'text' => '4500 52-port: 48 100TX + 2 SFP/1000T combo',
ff41d8ee 2733 'processors' => array ('3com-49-to-50-1000SFP', '3com-51-to-52-1000T', '3com-any-100TX'),
75016247
RD
2734 ),
2735 '43.1.16.4.3.23' => array
2736 (
2737 'dict_key' => 768,
2738 'text' => '4500-PWR 26-port: 24 100TX + 2 SFP/1000T combo',
ff41d8ee 2739 'processors' => array ('3com-27-to-28-1000T', '3com-25-to-26-1000SFP', '3com-any-100TX'),
75016247
RD
2740 ),
2741 '43.1.16.4.3.24' => array
2742 (
2743 'dict_key' => 769,
2744 'text' => '4500-PWR 52-port: 48 100TX + 2 SFP/1000T combo',
ff41d8ee 2745 'processors' => array ('3com-49-to-50-1000SFP', '3com-51-to-52-1000T', '3com-any-100TX'),
75016247 2746 ),
1cd6eca3
AD
2747 '43.1.16.4.3.29' => array
2748 (
2749 'dict_key' => 758,
d689f3b8
RS
2750 'text' => '4200G 48-port: 44 RJ-45/10-100-1000T(X) + 4 combo-gig',
2751 'processors' => array ('3com-49-to-50-1000SFP', '3com-51-to-52-1000SFP', '3com-any-1000T'),
2752 ),
2753 '43.1.16.4.3.31' => array
2754 (
2755 'dict_key' => 771,
2756 'text' => '4500G 48-port: 44 RJ-45/10-100-1000T(X) + 4 combo-gig',
ff41d8ee 2757 'processors' => array ('3com-49-to-50-1000SFP', '3com-51-to-52-1000SFP', '3com-any-1000T'),
1cd6eca3 2758 ),
c2e802a4
DO
2759 '43.1.16.4.3.45' => array
2760 (
2761 'dict_key' => 760,
2762 'text' => '4210 52-port: 48 100TX + 2 1000T + 2 SFP',
ff41d8ee 2763 'processors' => array ('3com-49-to-50-1000T', '3com-51-to-52-1000SFP', '3com-any-100TX'),
c2e802a4 2764 ),
1329ef2f
RD
2765 '43.1.16.4.3.83' => array
2766 (
2767 'dict_key' => 2092,
2768 'text' => '4510G 24-port: 24 RJ-45/10-100-1000T(X) + 4 SFP combo-gig',
28133744 2769 'processors' => array ('3com-25-to-26-1000SFP', '3com-27-to-28-1000SFP', '3com-any-1000T'),
1329ef2f 2770 ),
78cfe89b
AD
2771 '45.3.68.5' => array
2772 (
2773 'dict_key' => 1085,
2774 'text' => 'BES50GE-12T PWR: 12 RJ-45/10-100-1000T(X)',
2775 'processors' => array ('nortel-any-1000T'),
2776 ),
103ed845
M
2777 '119.1.203.2.2.41' => array
2778 (
2779 'dict_key' => 1810,
2780 'text' => 'PF5240: 48 RJ-45/10-100-1000T(X) + 4 SFP+',
2781 'processors' => array ('nec-any-1000T', 'nec-any-SFP+', 'nec-mgmt'),
2782 ),
a5eaff9a
AD
2783 '171.10.63.8' => array
2784 (
2785 'dict_key' => 616,
2786 'text' => 'DES-3052: 48 RJ-45/10-100TX + 2 RJ-45/10-100-1000T(X) + 2 combo ports',
2787 'processors' => array ('dlink-rmon-49-to-50-comboSFP', 'dlink-rmon-49-to-50-comboT', 'dlink-rmon-51-to-52-1000T', 'dlink-rmon-any-100TX'),
2788 ),
49055269
AD
2789 '171.10.76.10' => array
2790 (
2791 'dict_key' => 1799,
2792 'text' => 'DGS-1210-24: 20 RJ-45/10-100-1000T(X) + 4 combo ports',
2793 'processors' => array ('dlink-21-to-24-comboSFP', 'dlink-21-to-24-comboT', 'dlink-any-1000T'),
2794 'ifDescrOID' => 'ifName',
2795 ),
78cfe89b
AD
2796 '202.20.59' => array
2797 (
2798 'dict_key' => 1371,
2799 'text' => 'SMC8124L2: 20 RJ-45/10-100-1000T(X) + 4 combo ports',
2800 'processors' => array ('smc2-combo-21-to-24', 'smc2-any-1000T'),
2801 ),
2802 '202.20.66' => array
2803 (
2804 'dict_key' => 1567,
2805 'text' => 'SMC6128L2: 24 RJ-45/10-100TX + 4 combo-gig ports',
2806 'processors' => array ('smc2-combo-25-to-28', 'smc2-1000T-25-to-28', 'smc2-any-100TX'),
2807 ),
2808 '202.20.68' => array
2809 (
2810 'dict_key' => 1374,
2811 'text' => 'SMC8150L2: 46 RJ-45/10-100-1000T(X) + 4 combo ports',
2812 'processors' => array ('smc-combo-45-to-48', 'nortel-any-1000T'),
2813 ),
f7e717e9
AD
2814 '207.1.4' => array
2815 (
2816 'dict_key' => 2095,
2817 'text' => 'AT-GS950/24: 20 RJ-45/10-100-1000T(X) + 4 combo ports',
2818 'processors' => array ('generic-21-to-24-combo-1000SFP', 'generic-any-1000T'),
2819 ),
78cfe89b
AD
2820 '207.1.14.53' => array
2821 (
2822 'dict_key' => 1720,
2823 'text' => 'AT9924T: 24 RJ-45/10-100-1000T(X) ports',
2824 'processors' => array ('generic-port-any-1000T'),
2825 ),
f60a9008
AD
2826 '388.18' => array
2827 (
2828 'dict_key' => 1795,
103ed845
M
2829 'text' => 'RFS 4000: 5 RJ-45/10-100-1000T(X) + 1 combo uplink ports',
2830 'processors' => array ('motorola-rfs-uplink-comboSFP', 'motorola-rfs-uplink-comboT', 'motorola-rfs-any-1000T'),
92df4b0e 2831 ),
1ce6a44d
AD
2832 '674.10895.4' => array
2833 (
2834 'dict_key' => 1622,
2835 'text' => 'PowerConnect 5224: 20 RJ-45/10-100-1000T(X) + 4 combo ports',
2836 'processors' => array ('dell-5224-21-to-24-combo-1000SFP', 'dell-52xx-any-1000T'),
2837 ),
1b10e7cf
AD
2838 '674.10895.3000' => array
2839 (
2840 'dict_key' => 1623,
2841 'text' => 'PowerConnect 6024F: 16 SFP + 8 combo ports',
8595dfd0 2842 'processors' => array ('dell-g17-to-g24-combo-1000T', 'dell-any-1000SFP'),
1b10e7cf
AD
2843 'ifDescrOID' => 'ifName',
2844 ),
92df4b0e
AD
2845 '674.10895.3003' => array
2846 (
2847 'dict_key' => 1611,
2848 'text' => 'PowerConnect 3348: 48 RJ-45/10-100TX + 2 combo ports',
2849 'processors' => array ('dell-33xx-any-combo-1000SFP', 'dell-33xx-any-1000T', 'dell-33xx-any-100TX'),
2850 'ifDescrOID' => 'entPhysicalName',
2851 ),
1b10e7cf
AD
2852 '674.10895.3004' => array
2853 (
2854 'dict_key' => 349,
2855 'text' => 'PowerConnect 5324: 20 RJ-45/10-100-1000T(X) + 4 combo ports',
8595dfd0 2856 'processors' => array ('dell-g21-to-g24-combo-1000SFP', 'generic-g-any-1000T'),
1b10e7cf
AD
2857 'ifDescrOID' => 'ifName',
2858 ),
92df4b0e
AD
2859 '674.10895.3007' => array
2860 (
2861 'dict_key' => 347,
2862 'text' => 'PowerConnect 3448: 48 RJ-45/10-100TX + 2 SFP/1000 + 2 RJ-45/10-100-1000T(X) ports',
d7d68b9b 2863 'processors' => array ('dell-g1-to-g2-1000SFP', 'dell-g3-to-g4-1000T', 'generic-e-any-100TX'),
92df4b0e
AD
2864 'ifDescrOID' => 'ifName',
2865 ),
2866 '674.10895.3009' => array
2867 (
2868 'dict_key' => 348,
2869 'text' => 'PowerConnect 3448P: 48 RJ-45/10-100TX PoE + 2 SFP/1000 + 2 RJ-45/10-100-1000T(X) ports',
d7d68b9b 2870 'processors' => array ('dell-g1-to-g2-1000SFP', 'dell-g3-to-g4-1000T', 'generic-e-any-100TX'),
92df4b0e
AD
2871 'ifDescrOID' => 'ifName',
2872 ),
367fcba0
AD
2873 '674.10895.3010' => array
2874 (
2875 'dict_key' => 350,
2876 'text' => 'PowerConnect 6224: 20 RJ-45/10-100-1000T(X) + 4 combo-gig',
2877 'processors' => array ('netgear-chassis-21-to-24-1000SFP', 'netgear-chassis-21-to-24-1000Tcombo', 'netgear-chassis-any-1000T'),
2878 ),
0d456a22
DO
2879 '674.10895.3011' => array
2880 (
2881 'dict_key' => 353,
2882 'text' => 'PowerConnect 6248: 44 RJ-45/10-100-1000T(X) + 4 combo-gig + optional uplinks',
2883 # 10G uplinks actually may be SFP+, T, CX4 or XFP
2884 'processors' => array ('netgear-chassis-45-to-48-1000SFPcombo', 'netgear-chassis-any-1000T', 'netgear-chassis-any-SFP+'),
2885 ),
e326551d
AD
2886 '674.10895.3014' => array
2887 (
2888 'dict_key' => 352,
2889 'text' => 'PowerConnect 6224F: 20 SFP + 4 combo-gig',
2890 'processors' => array ('netgear-chassis-21-to-24-1000SFP', 'netgear-chassis-21-to-24-1000Tcombo', 'netgear-chassis-any-1000SFP'),
2891 ),
a5b9e656
MB
2892 '674.10895.3015' => array
2893 (
2894 'dict_key' => 1532,
2895 'text' => 'PowerConnect M6220 blade cabinet switch',
2896 'processors' => array ('dell-m6220-gigabitethernet'),
2897 'ifDescrOID' => 'ifDescr',
2898 ),
92df4b0e
AD
2899 '674.10895.3017' => array
2900 (
2901 'dict_key' => 1067,
2902 'text' => 'PowerConnect 3548: 48 RJ-45/10-100TX + 2 SFP/1000 + 2 RJ-45/10-100-1000T(X) ports',
d7d68b9b 2903 'processors' => array ('dell-g1-to-g2-1000SFP', 'dell-g3-to-g4-1000T', 'generic-e-any-100TX'),
92df4b0e
AD
2904 ),
2905 '674.10895.3019' => array
2906 (
2907 'dict_key' => 1068,
2908 'text' => 'PowerConnect 3548P: 48 RJ-45/10-100TX PoE + 2 SFP/1000 + 2 RJ-45/10-100-1000T(X) ports',
d7d68b9b 2909 'processors' => array ('dell-g1-to-g2-1000SFP', 'dell-g3-to-g4-1000T', 'generic-e-any-100TX'),
92df4b0e 2910 ),
92df4b0e
AD
2911 '674.10895.3020' => array
2912 (
2913 'dict_key' => 1069,
2914 'text' => 'PowerConnect 5424: 20 RJ-45/10-100-1000T(X) + 4 combo ports',
8595dfd0 2915 'processors' => array ('dell-g21-to-g24-combo-1000SFP', 'generic-g-any-1000T'),
92df4b0e
AD
2916 'ifDescrOID' => 'ifName',
2917 ),
2918 '674.10895.3021' => array
2919 (
2920 'dict_key' => 1070,
2921 'text' => 'PowerConnect 5448: 44 RJ-45/10-100-1000T(X) + 4 combo ports',
8595dfd0 2922 'processors' => array ('generic-g45-to-g48-combo-1000SFP', 'generic-g-any-1000T'),
92df4b0e 2923 'ifDescrOID' => 'ifName',
06a03a99 2924 ),
a1fc412e
AD
2925 '674.10895.3028' => array
2926 (
2927 'dict_key' => 1063,
2928 'text' => 'PowerConnect 2824: 22 RJ-45/10-100-1000T(X) + 2 combo ports',
2929 'processors' => array ('dell-g23-to-g24-combo-1000SFP', 'generic-g-any-1000T'),
2930 'ifDescrOID' => 'ifName',
2931 ),
103ed845 2932 '1916.2.71' => array
ac02ab69 2933 (
103ed845
M
2934 'dict_key' => 694,
2935 'text' => 'X450a-24t: 20 RJ-45/10-100-1000T(X) + 4 combo-gig + XFP uplinks slot',
2936 'processors' => array ('summit-25-to-26-XFP-uplinks', 'summit-21-to-24-comboSFP', 'summit-any-1000T', 'summit-management'),
2937 ),
2938 '1916.2.139' => array
2939 (
2940 'dict_key' => 1353,
2941 'text' => 'X480-24x: 12 SFP-1000 + 12 combo-gig + 2 XFP + VIM slot',
2942 'processors' => array
2943 (
2944 'summit-27-to-30-XFP-uplinks',
2945 'summit-25-to-26-XFP-uplinks',
2946 'summit-13-to-24-comboT',
2947 'summit-any-SFP',
2948 'summit-management'
2949 ),
2950 ),
2951 '1991.1.3.45.2.1.1.1' => array
2952 (
2953 'dict_key' => 127,
2954 'text' => 'FGS648P: 48 RJ-45/10-100-1000T(X) + 4 combo-gig + uplink slot',
2955 'processors' => array ('fgs-1-to-4-comboSFP', 'fgs-any-1000T', 'fgs-uplinks'),
2956 ),
2957 '1991.1.3.45.2.2.1.1' => array
2958 (
2959 'dict_key' => 131,
2960 'text' => 'FGS648P-POE: 48 RJ-45/10-100-1000T(X) + 4 combo-gig + uplink slot',
2961 'processors' => array ('fgs-1-to-4-comboSFP', 'fgs-any-1000T', 'fgs-uplinks'),
2962 ),
103ed845
M
2963 '1991.1.3.46.1.1.1.1' => array
2964 (
2965 'dict_key' => 413,
2966 'text' => 'FLS 624: 20 RJ-45/10-100-1000T(X) + 4 combo-gig + 3 optional 10G modules',
2967 'processors' => array ('fls624-combo', 'fgs-any-1000T', 'fls-uplinks'),
2968 ),
2969 '1991.1.3.46.2.1.1.1' => array
2970 (
2971 'dict_key' => 414,
2972 'text' => 'FLS 648: 44 RJ-45/10-100-1000T(X) + 4 combo-gig + 2 optional 10G modules',
2973 'processors' => array ('fls648-combo', 'fgs-any-1000T', 'fls-uplinks'),
2974 ),
2975 '1991.1.3.52.2.2.1.1' => array
2976 (
2977 'dict_key' => 1032,
2978 'text' => 'FWS648G: 4 combo-gig + 44 RJ-45/10-100-1000T(X)',
2979 'processors' => array ('fgs-1-to-4-comboSFP', 'fgs-any-1000T'),
2980 ),
31237655
M
2981 '1991.1.3.53.1.2' => array
2982 (
2983 'dict_key' => 1044,
2984 'text' => 'TurboIron 24X : 4 10/100/1000T RJ-45, 24 10000 SFP+, 1 10/100/1000 RJ-45 + 1 Db9 Serial Mgmt',
3077a1f4 2985 'processors' => array ('turboiron-any-10000SFP+', 'turboiron-any-10-100-1000T', 'fcx-management'),
31237655 2986 ),
66c1932f
AD
2987 '1991.1.3.54.2.4.1.1' => array # L2 software
2988 (
2989 'dict_key' => 1362,
2990 'text' => 'FCX 648: 48 RJ-45/10-100-1000T(X) + uplink slot with 4 SFP+',
2991 'processors' => array ('fgs-any-1000T', 'fcx-uplinks', 'fcx-management'),
2992 ),
2993 '1991.1.3.54.2.4.1.3' => array # L3 software
2994 (
2995 'dict_key' => 1362,
2996 'text' => 'FCX 648: 48 RJ-45/10-100-1000T(X) + uplink slot with 4 SFP+',
2997 'processors' => array ('fgs-any-1000T', 'fcx-uplinks', 'fcx-management'),
2998 ),
103ed845
M
2999 '2011.2.23.94' => array
3000 (
3001 'dict_key' => 1619,
3002 'text' => 'S2352P-EI: 48 RJ-45/10-100TX + 4 SFP-1000',
3003 'processors' => array ('quidway-any-100TX', 'quidway-any-1000SFP'),
3004 ),
3005 '2011.2.23.95' => array
3006 (
3007 'dict_key' => 1335,
3008 'text' => 'S5328C-EI: 20 RJ-45/10-100-1000T(X) + 4 combo-gig + 2 XFP slots',
3009 'processors' => array ('quidway-21-to-24-comboSFP', 'quidway-any-1000T', 'quidway-XFP', 'quidway-mgmt'),
3010 ),
3011 '2011.2.23.96' => array
3012 (
3013 'dict_key' => 1321,
3014 'text' => 'S5328C-EI-24S: 20 SFP-1000 + 4 combo-gig + 2 XFP slots',
3015 'processors' => array ('quidway-21-to-24-comboT', 'quidway-any-1000SFP', 'quidway-XFP', 'quidway-mgmt'),
3016 ),
3017 '2011.2.23.97' => array
3018 (
3019 'dict_key' => 1337,
3020 'text' => 'S5352C-EI: 48 RJ-45/10-100-1000T(X) + optional 2xXFP/4xSFP slots',
3021 'processors' => array ('quidway-slot1-SFP', 'quidway-any-1000T', 'quidway-XFP', 'quidway-mgmt'),
3022 ),
3023 '2011.2.23.102' => array
3024 (
3025 'dict_key' => 1339,
3026 'text' => 'S5328C-SI: 20 RJ-45/10-100-1000T(X) + 4 combo-gig + 2 XFP slots',
3027 'processors' => array ('quidway-21-to-24-comboSFP', 'quidway-any-1000T', 'quidway-XFP', 'quidway-mgmt'),
3028 ),
3029 '2011.2.23.103' => array
3030 (
3031 'dict_key' => 1341,
3032 'text' => 'S5352C-SI: 48 RJ-45/10-100-1000T(X) + optional 2xXFP/4xSFP slots',
3033 'processors' => array ('quidway-slot1-SFP', 'quidway-any-1000T', 'quidway-XFP', 'quidway-mgmt'),
3034 ),
3035 '2011.2.23.119' => array
3036 (
3037 'dict_key' => 1914,
3038 'text' => 'S2700-52P-EI: 48 RJ-45/10-100TX + 4 SFP-1000',
3039 'processors' => array ('quidway-any-100TX', 'quidway-any-1000SFP'),
3040 ),
3041 '2011.2.239.4' => array
3042 (
3043 'dict_key' => 1769,
3044 'text' => 'CE5850-48T4S2Q-EI: 48 RJ-45/10-100-1000T(X) + 4 SFP+ slots + 2 QSFP+ slots',
3045 'processors' => array ('hce-any-1000T', 'hce-any-SFP', 'hce-any-QSFP', 'quidway-mgmt'),
3046 ),
71a478db
AA
3047 '2011.2.239.5' => array
3048 (
3049 'dict_key' => 1772,
3050 'text' => 'CE6850-48S4Q-EI: 48 4 SFP+ slots + 4 QSFP+ slots',
3051 'processors' => array ('hce-any-1000T', 'hce-any-SFP', 'hce-any-QSFP', 'quidway-mgmt'),
3052 ),
4b22410c
AA
3053 '2011.2.239.11' => array
3054 (
3055 'dict_key' => 2226,
3056 'text' => 'CE7850-32Q-EI: 32 QSFP+ slots',
3057 'processors' => array ('hce-any-QSFP-split', 'hce-any-QSFP', 'quidway-mgmt'),
3058 ),
103ed845
M
3059 '2636.1.1.1.2.29' => array
3060 (
3061 'dict_key' => 925,
3062 'text' => 'MX240 modular router',
3063 'processors' => array ('juniper-DPCE-R-4XGE-XFP'),
3064 ),
3065 // Juniper Networks assigns single SNMP OID per series:
3066 // EX2200 2636.1.1.1.1.43
3067 // EX3200 2636.1.1.1.2.30
3068 // EX4200 2636.1.1.1.2.31
3069 // EX4500 2636.1.1.1.1.44
3070 // There is a special workaround in code below to derive specific
3071 // product number from sysDescr string.
3072 '2636.1.1.1.2.30' => array
3073 (
3074 'dict_key' => 900,
3075 'text' => 'Juniper EX3200 series',
3076 'processors' => array ('juniper-ex-pic0-1000T', 'juniper-ex-mgmt'),
3077 ),
3078 '2636.1.1.1.2.31' => array
3079 (
3080 'dict_key' => 905,
3081 'text' => 'Juniper EX4200 series',
3082 'processors' => array ('juniper-ex-pic0-1000T', 'juniper-ex-mgmt'),
ac02ab69 3083 ),
c23734f0
AD
3084 '3955.6.1.2024.1' => array
3085 (
3086 'dict_key' => 2212,
3087 'text' => 'Linksys SRW2024P: 22 RJ-45/10-100-1000T(X) + 2 combo ports',
3088 'processors' => array ('generic-g12-and-g24-combo-1000SFP', 'generic-g-any-1000T'),
3089 'ifDescrOID' => 'ifName',
3090 ),
8595dfd0
AD
3091 '3955.6.1.2048.1' => array
3092 (
3093 'dict_key' => 1624,
3094 'text' => 'Linksys SRW2048: 44 RJ-45/10-100-1000T(X) + 4 combo ports',
3095 'processors' => array ('generic-g45-to-g48-combo-1000SFP', 'generic-g-any-1000T'),
3096 'ifDescrOID' => 'ifName',
3097 ),
d7d68b9b
AD
3098 '3955.6.5024' => array
3099 (
3100 'dict_key' => 1966,
3101 'text' => 'Linksys SRW224G4: 24-port 10/100 + 4-Port Gigabit Switch with WebView',
3102 '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'),
3103 'ifDescrOID' => 'ifName',
3104 ),
1329ef2f
RD
3105 '3955.6.5048' => array
3106 (
3107 'dict_key' => 2093,
3108 'text' => 'Linksys SRW248G4: 48-port 10/100 + 4-Port Gigabit Switch with WebView',
3109 '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'),
3110 'ifDescrOID' => 'ifName',
3111 ),
103ed845
M
3112 '4526.100.1.1' => array
3113 (
3114 'dict_key' => 587,
3115 'text' => 'FSM7328S: 24 RJ-45/10-100TX + 4 combo-gig',
3116 'processors' => array ('netgear-chassis-any-100TX', 'netgear-chassis-any-1000SFPcombo', 'netgear-chassis-any-1000T'),
3117 ),
3118 '4526.100.2.2' => array
3119 (
3120 'dict_key' => 562,
3121 'text' => 'GSM7224: 20 RJ-45/10-100-1000T(X) + 4 combo-gig',
3122 'processors' => array ('netgear-chassis-21-to-24-1000SFP', 'netgear-chassis-21-to-24-1000Tcombo', 'netgear-chassis-any-1000T'),
3123 ),
3124 '4526.100.2.3' => array
3125 (
3126 'dict_key' => 559,
3127 'text' => 'GSM7212: 12 combo-gig',
3128 'processors' => array ('netgear-chassis-any-1000SFPcombo', 'netgear-chassis-any-1000T'),
3129 ),
103ed845
M
3130 '4526.100.1.13' => array
3131 (
3132 'dict_key' => 1601,
3133 'text' => 'GSM7328Sv2: 20 RJ-45/10-100-1000T(X) + 4 combo-gig',
3134 'processors' => array ('netgear-chassis-21-to-24-1000SFP', 'netgear-chassis-21-to-24-1000Tcombo', 'netgear-chassis-any-1000T'),
3135 ),
3136 '4526.100.1.14' => array
3137 (
3138 'dict_key' => 1794,
3139 'text' => 'GSM7352Sv2: 44 RJ-45/10-100-1000T(X) + 4 combo-gig + SFP+ uplinks',
3140 'processors' => array ('netgear-chassis-45-to-48-1000SFPcombo', 'netgear-chassis-any-1000T', 'netgear-chassis-any-SFP+'),
3141 ),
04b469f9
AD
3142 '4526.100.4.6' => array
3143 (
3144 'dict_key' => 578,
3145 'text' => 'FS726TP: 24 RJ-45/10-100TX + 2 combo-gig',
3146 'processors' => array ('netgear-fs726tp-1000SFPcombo', 'netgear-fs726tp-1000T', 'netgear-fs726tp-100TX'),
3147 ),
6a6aa9aa
M
3148 '4526.100.4.10' => array
3149 (
3150 'dict_key' => 565,
04b469f9 3151 'text' => 'GS724TP: 24 RJ-45/10-100-1000T + 2 combo-gig SFP',
6a6aa9aa
M
3152 'ifDescrOID' => 'ifName',
3153 'processors' => array ('netgear-23-to-24-1000SPFcombo', 'netgear-any-1000T'),
3154 ),
04b469f9
AD
3155 '4526.100.11.1' => array
3156 (
3157 'dict_key' => 557,
3158 'text' => 'GSM7224R: 20 RJ-45/10-100-1000T(X) + 4 combo-gig',
3159 'processors' => array ('netgear-chassis-21-to-24-1000SFP', 'netgear-chassis-21-to-24-1000Tcombo', 'netgear-chassis-any-1000T'),
3160 ),
3161 '4526.100.11.5' => array
3162 (
3163 'dict_key' => 1602,
3164 'text' => 'GSM7224v2: 20 RJ-45/10-100-1000T(X) + 4 combo-gig',
3165 'processors' => array ('netgear-chassis-21-to-24-1000SFP', 'netgear-chassis-21-to-24-1000Tcombo', 'netgear-chassis-any-1000T'),
3166 ),
103ed845
M
3167 '6027.1.3.12' => array
3168 (
3169 'dict_key' => 1471,
3170 'text' => 'Force10 S60: 44 RJ-45/10-100-1000T(X) + 4 SFP-1000 ports + 0/2/4 SFP+ ports',
3171 'processors' => array ('ftos-44-to-47-1000SFP', 'ftos-any-1000T', 'ftos-any-10000SFP+', 'ftos-mgmt'),
3172 ),
3173 '6027.1.3.13' => array
3174 (
3175 'dict_key' => 1470,
3176 'text' => 'Force10 S55: 44 RJ-45/10-100-1000T(X) + 4 SFP-1000 ports + 0/2/4 SFP+ ports',
3177 'processors' => array ('ftos-44-to-47-1000SFP', 'ftos-any-1000T', 'ftos-any-10000SFP+', 'ftos-mgmt'),
3178 ),
3179 '6027.1.3.14' => array
3180 (
3181 'dict_key' => 1472,
3182 'text' => 'Force10 S4810: 48 SFP+-1000/10000 + 4 QSFP-40000 ports',
3183 'processors' => array ('ftos-any-10000SFP+', 'ftos-any-QSFP+', 'ftos-mgmt'),
3184 ),
3185 '10977.11825.11833.97.25451.12800.100.4.4' => array
3186 (
3187 'dict_key' => 577,
3188 'text' => 'FS750T2: 48 RJ-45/10-100TX + 2 combo-gig',
3189 'processors' => array ('netgear-49-to-50-combo-1000SFP', 'netgear-49-to-50-combo-1000T', 'netgear-any-100TX'),
3190 ),
327fef16
M
3191 '11863.1.1.1' => array
3192 (
3193 'dict_key' => 2058,
3194 'text' => 'TL-SL5428E: 24 RJ-45/10-100TX + 2 1000T + 2 combo ports',
3195 'processors' => array ('tplink-27-to-28-combo-1000SFP', 'tplink-25-to-28-1000T', 'tplink-any-100T'),
3196 ),
c4acc30b
AD
3197 '11863.6.10.58' => array
3198 (
3199 'dict_key' => 1793,
3200 'text' => 'TL-SG5426: 22 RJ-45/10-100-1000T(X) + 4 combo ports',
3201 'processors' => array ('tplink-21-to-24-combo-1000SFP', 'tplink-any-1000T'),
3202 ),
103ed845 3203 '12356.101.1.3002'=> array
a3520e4c 3204 (
103ed845
M
3205 'dict_key' => 1609,
3206 'text' => 'FG310B: 10 RJ-45/10-1000T',
3207 'processors' => array('generic-port-any-1000T'),
a3520e4c 3208 ),
ecc982a6
DO
3209 '26543.1.7.6' => array
3210 (
3211 'dict_key' => 1888,
3212 'text' => 'G8264: 48 SFP+ + 4 QSFP+ w/breakout',
3213 'processors' => array ('ibm-any-SFP+', 'ibm-mgmt'),
3214 ),
24ae7cd1
DO
3215 '26543.1.7.7' => array
3216 (
3217 'dict_key' => 1887,
3218 'text' => 'G8052: 48 RJ-45/10-100-1000T(X) + 4 SFP+',
3219 'processors' => array ('ibm-49-to-52-SFP+', 'ibm-any-1000T'),
3220 ),
103ed845 3221 '30065.1.3011.7048.427.3648' => array
63b2bad8 3222 (
103ed845
M
3223 'dict_key' => 1726,
3224 'text' => 'DCS-7048T-A: 48 1000T + 4 SFP+/10000',
3225 'processors' => array ('arista-49-to-52-SFP+', 'arista-any-1000T', 'arista-management'),
63b2bad8 3226 ),
103ed845 3227 '30065.1.3011.7050.3282.52' => array
49c4c086 3228 (
103ed845
M
3229 'dict_key' => 1731,
3230 'text' => 'DCS-7050S-52: 52 SFP+',
3231 'processors' => array ('arista-any-SFP+', 'arista-management'),
49c4c086 3232 ),
103ed845 3233 '30065.1.3011.7124.3282' => array
ae55be10 3234 (
103ed845
M
3235 'dict_key' => 1610,
3236 'text' => 'DCS-7124S: 24 SFP+/10000',
3237 'processors' => array ('arista-any-SFP+', 'arista-management'),
ae55be10 3238 ),
78da1c4c
CJ
3239 '1991.1.3.57.2.1.1.1' => array
3240 (
3241 'dict_key' => 2239,
3242 'text' => 'ICX6430-48: 48 1000T + 4 SFP+/1000',
3243 'processors' => array ('brocade-icx-64xx-1000T','brocade-icx-64xx-1000SFP', 'fcx-management'),
3244 ),
3245 '1991.1.3.48.4.1' => array
3246 (
3247 'dict_key' => 2239,
3248 'text' => 'Stacked ICX6430-48: 48 1000T + 4 SFP+/1000',
3249 'processors' => array ('brocade-icx-64xx-1000T','brocade-icx-64xx-1000SFP', 'fcx-management'),
3250 ),
3251 '1991.1.3.48.5.1' => array
3252 (
3253 'dict_key' => 2240,
3254 'text' => 'Stacked ICX6450-48: 48 1000T + 4 SFP+/10000',
3255 'processors' => array ('brocade-icx-64xx-1000T','brocade-icx-64xx-10000SFP', 'fcx-management'),
3256 ),
8df12894
DO
3257 '25506.11.1.82' => array
3258 (
e6562cdb 3259 'dict_key' => 2176,
8df12894
DO
3260 'text' => 'JE006A: 24 RJ-45/10-100-1000T(X) + 4 SFP-1000 ports',
3261 'processors' => array ('3com-25-to-26-1000SFP', '3com-27-to-28-1000SFP', '3com-any-1000T'),
3262 ),
78da1c4c
CJ
3263 '26543.1.7.1' => array
3264 (
3265 'dict_key' => 2241,
3266 'text' => 'IBM System Networking RackSwitch G8000',
3267 'processors' => array ('ibm-45-to-48-SFP','ibm-49-to-52-SFP+','ibm-any-1000T'),
3268 ),
3269
74aee2dc
DO
3270);
3271
536e7323 3272global $swtype_pcre;
1f54e1ba
DO
3273$swtype_pcre = array
3274(
d89632f6
AA
3275 '/Huawei Versatile Routing Platform Software.+VRP.+Software, Version 5\.30 /s' => 1360,
3276 '/Huawei Versatile Routing Platform Software.+VRP.+Software, Version 5\.50 /s' => 1361,
3277 '/Huawei Versatile Routing Platform Software.+VRP.+Software,\s*Version 5\.70 /is' => 1369,
2e3eef93
AA
3278 '/Huawei Versatile Routing Platform Software.+VRP.+Software,\s*Version 5\.110 /is' => 2080,
3279 '/Huawei Versatile Routing Platform Software.+VRP.+Software,\s*Version 5\.120 /is' => 2081,
64485c80 3280 '/Huawei Versatile Routing Platform Software.+VRP.+Software,\s*Version 8\./is' => 2027,
1f54e1ba
DO
3281 // FIXME: get sysDescr for IronWare 5 and add a pattern
3282 '/^Brocade Communications Systems.+, IronWare Version 07\./' => 1364,
3283 '/^Juniper Networks,.+JUNOS 9\./' => 1366,
3284 '/^Juniper Networks,.+JUNOS 10\./' => 1367,
2ea5fd28 3285 '/^Arista Networks EOS version 4\./' => 1675,
55aee2df 3286 '/^Dell Force10 OS\b.*\bApplication Software Version: 8(\.\d+){3}/' => 1594,
1f54e1ba
DO
3287);
3288
74aee2dc
DO
3289function updateStickerForCell ($cell, $attr_id, $new_value)
3290{
dec748f6 3291 if
472510e7 3292 (
dec748f6
MH
3293 isset ($cell['attrs'][$attr_id])
3294 and !strlen ($cell['attrs'][$attr_id]['value'])
472510e7
AA
3295 and strlen ($new_value)
3296 )
74aee2dc
DO
3297 commitUpdateAttrValue ($cell['id'], $attr_id, $new_value);
3298}
3299
bdc91a5c
DO
3300// Accept "X-Y" on input and make sure, that PortInterfaceCompat contains
3301// a record with IIF id = X and OIF id = Y.
3302function checkPIC ($port_type_id)
3303{
f2005400
AA
3304 // cache PortInterfaceCompat
3305 static $compat_array = NULL;
3306 if (! isset ($compat_array))
bdc91a5c 3307 {
f2005400
AA
3308 $compat_array = array();
3309 foreach (getPortInterfaceCompat() as $record)
3310 {
3311 $key = $record['iif_id'] . '-' . $record['oif_id'];
3312 $compat_array[$key] = 1;
3313 }
3314 }
92df4b0e 3315
a3373728 3316 if (preg_match ('/^(?:(\d+)-)?(\d+)$/', $port_type_id, $m))
f2005400
AA
3317 {
3318 $iif_id = $m[1];
3319 $oif_id = $m[2];
bf5b6e06 3320 if (empty ($iif_id))
f2005400
AA
3321 {
3322 $iif_id = 1;
3323 $port_type_id = $iif_id . '-' . $port_type_id;
3324 }
3325 if (! array_key_exists ($port_type_id, $compat_array))
3326 {
3327 commitSupplementPIC ($iif_id, $oif_id);
3328 $compat_array[$port_type_id] = 1;
3329 }
bdc91a5c 3330 }
bdc91a5c
DO
3331}
3332
8536e20a
DO
3333$msgcode['doSNMPmining']['ERR1'] = 161;
3334$msgcode['doSNMPmining']['ERR2'] = 162;
8228bdb4 3335function doSNMPmining ($object_id, $snmpsetup)
74aee2dc 3336{
74aee2dc
DO
3337 $objectInfo = spotEntity ('object', $object_id);
3338 $objectInfo['attrs'] = getAttrValues ($object_id);
3339 $endpoints = findAllEndpoints ($object_id, $objectInfo['name']);
3340 if (count ($endpoints) == 0)
3d5fb416
AA
3341 {
3342 showFuncMessage (__FUNCTION__, 'ERR1'); // endpoint not found
3343 return;
3344 }
74aee2dc 3345 if (count ($endpoints) > 1)
3d5fb416
AA
3346 {
3347 showFuncMessage (__FUNCTION__, 'ERR2'); // can't pick an address
3348 return;
3349 }
4848a7e3
DO
3350
3351 switch ($objectInfo['objtype_id'])
3352 {
d8188a1c
AD
3353 case 7: // Router
3354 case 8: // Network switch
3355 case 965: // Wireless
7b2a1a90 3356 $device = new RTSNMPDevice ($endpoints[0], $snmpsetup);
8228bdb4 3357 return doSwitchSNMPmining ($objectInfo, $device);
4848a7e3 3358 case 2:
7b2a1a90 3359 $device = new APCPowerSwitch ($endpoints[0], $snmpsetup);
8228bdb4 3360 return doPDUSNMPmining ($objectInfo, $device);
92df4b0e 3361 }
4848a7e3
DO
3362}
3363
24a6e3a2 3364$msgcode['doSwitchSNMPmining']['ERR3'] = 188;
e22f9600 3365$msgcode['doSwitchSNMPmining']['ERR4'] = 189;
8228bdb4 3366function doSwitchSNMPmining ($objectInfo, $device)
4848a7e3 3367{
4848a7e3 3368 global $known_switches, $iftable_processors;
92df4b0e 3369
8228bdb4 3370 if (FALSE === ($sysObjectID = $device->snmpget ('sysObjectID.0')))
3d5fb416
AA
3371 {
3372 showFuncMessage (__FUNCTION__, 'ERR3'); // // fatal SNMP failure
3373 return;
3374 }
ac02ab69 3375 $sysObjectID = preg_replace ('/^.*(enterprises\.|joint-iso-ccitt\.)([\.[:digit:]]+)$/', '\\2', $sysObjectID);
d6d3dbea 3376 if (!isset ($known_switches[$sysObjectID]))
3d5fb416
AA
3377 {
3378 showFuncMessage (__FUNCTION__, 'ERR4', array ($sysObjectID)); // unknown OID
3379 return;
3380 }
8228bdb4
DO
3381 $sysName = substr ($device->snmpget ('sysName.0'), strlen ('STRING: '));
3382 $sysDescr = substr ($device->snmpget ('sysDescr.0'), strlen ('STRING: '));
74aee2dc 3383 $sysDescr = str_replace (array ("\n", "\r"), " ", $sysDescr); // Make it one line
88a3eb3f 3384 $ifDescr_tablename = array_fetch ($known_switches[$sysObjectID], 'ifDescrOID', 'ifDescr');
7e577e27 3385 showSuccess ($known_switches[$sysObjectID]['text']);
5e193b67
DO
3386 foreach (array_keys ($known_switches[$sysObjectID]['processors']) as $pkey)
3387 if (!array_key_exists ($known_switches[$sysObjectID]['processors'][$pkey], $iftable_processors))
3388 {
8ab645cf 3389 showWarning ('processor "' . $known_switches[$sysObjectID]['processors'][$pkey] . '" not found');
5e193b67
DO
3390 unset ($known_switches[$sysObjectID]['processors'][$pkey]);
3391 }
56a797ef 3392 updateStickerForCell ($objectInfo, 2, $known_switches[$sysObjectID]['dict_key']);
74aee2dc 3393 updateStickerForCell ($objectInfo, 3, $sysName);
55aee2df 3394 detectSoftwareType ($objectInfo, $sysDescr);
74aee2dc
DO
3395 switch (1)
3396 {
da273595 3397 case preg_match ('/^9\.1\./', $sysObjectID): // Catalyst w/one AC port
44277e87 3398 case preg_match ('/^9\.5\.18/', $sysObjectID):
84986395
DO
3399 $exact_release = preg_replace ('/^.*, Version ([^ ]+), .*$/', '\\1', $sysDescr);
3400 $major_line = preg_replace ('/^([[:digit:]]+\.[[:digit:]]+)[^[:digit:]].*/', '\\1', $exact_release);
74aee2dc
DO
3401 $ios_codes = array
3402 (
3403 '12.0' => 244,
3404 '12.1' => 251,
3405 '12.2' => 252,
90cdae19 3406 '15.0' => 1901,
bfc06839 3407 '15.1' => 2082,
74aee2dc
DO
3408 );
3409 updateStickerForCell ($objectInfo, 5, $exact_release);
6be06cbb
DO
3410 if (array_key_exists ($major_line, $ios_codes))
3411 updateStickerForCell ($objectInfo, 4, $ios_codes[$major_line]);
8228bdb4 3412 $sysChassi = $device->snmpget ('1.3.6.1.4.1.9.3.6.3.0');
74aee2dc
DO
3413 if ($sysChassi !== FALSE or $sysChassi !== NULL)
3414 updateStickerForCell ($objectInfo, 1, str_replace ('"', '', substr ($sysChassi, strlen ('STRING: '))));
bdc91a5c
DO
3415 checkPIC ('1-29');
3416 commitAddPort ($objectInfo['id'], 'con0', '1-29', 'console', ''); // RJ-45 RS-232 console
b3f84e8e
AD
3417 if (preg_match ('/Cisco IOS Software, C2600/', $sysDescr))
3418 commitAddPort ($objectInfo['id'], 'aux0', '1-29', 'auxillary', ''); // RJ-45 RS-232 aux port
da273595
AD
3419 if ($sysObjectID == '9.1.956')
3420 {
3421 // models with two AC inputs
3422 checkPIC ('1-16');
3423 commitAddPort ($objectInfo['id'], 'AC-in-1', '1-16', 'AC1', '');
3424 commitAddPort ($objectInfo['id'], 'AC-in-2', '1-16', 'AC2', '');
3425 }
3426 elseif ($sysObjectID != '9.1.749' and $sysObjectID != '9.1.920')
facd0235 3427 {
da273595 3428 // assume the rest have one AC input, but exclude blade devices
facd0235
DO
3429 checkPIC ('1-16'); // AC input
3430 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
3431 }
74aee2dc 3432 break;
65e11216 3433 case preg_match ('/^9\.5\.42/', $sysObjectID): // Catalyst 2948 running CatOS
869d4ff4 3434 case preg_match ('/^9\.6\.1\./', $sysObjectID): // Cisco SF series
f7e717e9 3435 case preg_match ('/^2011\.2\.239?\./', $sysObjectID): // Huawei
869d4ff4
DO
3436 checkPIC ('1-681');
3437 commitAddPort ($objectInfo['id'], 'con0', '1-681', 'console', ''); // DB-9 RS-232 console
b0021c43
AD
3438 checkPIC ('1-16');
3439 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
3440 break;
56a797ef 3441 case preg_match ('/^9\.12\.3\.1\.3\./', $sysObjectID): // Nexus
84986395
DO
3442 $exact_release = preg_replace ('/^.*, Version ([^ ]+), .*$/', '\\1', $sysDescr);
3443 $major_line = preg_replace ('/^([[:digit:]]+\.[[:digit:]]+)[^[:digit:]].*/', '\\1', $exact_release);
74aee2dc
DO
3444 $nxos_codes = array
3445 (
3446 '4.0' => 963,
3447 '4.1' => 964,
3448 );
6be06cbb
DO
3449 if (array_key_exists ($major_line, $nxos_codes))
3450 updateStickerForCell ($objectInfo, 4, $nxos_codes[$major_line]);
74aee2dc 3451 updateStickerForCell ($objectInfo, 5, $exact_release);
0533b64d
DO
3452 $sysChassi = $device->snmpget ('1.3.6.1.2.1.47.1.1.1.1.11.149');
3453 if ($sysChassi !== FALSE or $sysChassi !== NULL)
3454 updateStickerForCell ($objectInfo, 1, str_replace ('"', '', substr ($sysChassi, strlen ('STRING: '))));
bdc91a5c 3455 checkPIC ('1-29');
24a6e3a2 3456 commitAddPort ($objectInfo['id'], 'con0', '1-29', 'console', ''); // RJ-45 RS-232 console
dcfa87d7
DO
3457 checkPIC ('1-16'); // AC input
3458 commitAddPort ($objectInfo['id'], 'AC-in-1', '1-16', 'AC1', '');
3459 commitAddPort ($objectInfo['id'], 'AC-in-2', '1-16', 'AC2', '');
74aee2dc 3460 break;
13b28c20
DO
3461 case preg_match ('/^11\.2\.3\.7\.11\.(\d+)$/', $sysObjectID, $matches): // ProCurve
3462 $console_per_product = array
3463 (
5d930daf
AD
3464 33 => '1-29', # RJ-45 RS-232
3465 63 => '1-29',
83aedacd
AD
3466 78 => '1-29',
3467 79 => '1-29',
3468 80 => '1-29',
659ca0f3 3469 84 => '1-29',
13b28c20
DO
3470 86 => '1-29',
3471 87 => '1-29',
a437a607
AD
3472 94 => '1-29',
3473 95 => '1-29',
275b0cdb 3474 154 => '1-29',
13b28c20 3475 19 => '1-681', # DB-9 RS-232
a437a607
AD
3476 31 => '1-681',
3477 34 => '1-681',
659ca0f3 3478 58 => '1-681',
275b0cdb 3479 59 => '1-681',
13b28c20
DO
3480 );
3481 if (array_key_exists ($matches[1], $console_per_product))
3482 {
3483 checkPIC ($console_per_product[$matches[1]]);
5d930daf 3484 commitAddPort ($objectInfo['id'], 'console', $console_per_product[$matches[1]], 'console', '');
13b28c20 3485 }
5d930daf
AD
3486 $oom_per_product = array
3487 (
3488 33 => '1-24', # RJ-45 100Mb
3489 );
3490 if (array_key_exists ($matches[1], $oom_per_product))
3491 {
3492 checkPIC ($oom_per_product[$matches[1]]);
3493 commitAddPort ($objectInfo['id'], 'mgmt', $oom_per_product[$matches[1]], 'mgmt', '');
3494 }
3495 checkPIC ('1-16');
3496 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
84986395 3497 $exact_release = preg_replace ('/^.* revision ([^ ]+), .*$/', '\\1', $sysDescr);
74aee2dc
DO
3498 updateStickerForCell ($objectInfo, 5, $exact_release);
3499 break;
e68824f6 3500 case preg_match ('/^2636\.1\.1\.1\.2\.3(0|1)/', $sysObjectID): // Juniper EX3200/EX4200
e68824f6
AD
3501 $sw_version = preg_replace ('/^.*, kernel JUNOS ([^ ]+).*$/', '\\1', $sysDescr);
3502 updateStickerForCell ($objectInfo, 5, $sw_version);
3503 // one RJ-45 RS-232 and one AC port (it could be DC, but chances are it's AC)
1f54e1ba
DO
3504 checkPIC ('1-29');
3505 commitAddPort ($objectInfo['id'], 'con', '1-29', 'CON', ''); // RJ-45 RS-232 console
e68824f6
AD
3506 checkPIC ('1-16');
3507 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
3508 // Juniper uses the same sysObjectID for multiple HW models, override if necessary
3509 if (preg_match ('/^Juniper Networks, Inc. ex3200-48t internet router/', $sysDescr))
3510 updateStickerForCell ($objectInfo, 2, 902);
1f54e1ba
DO
3511 if (preg_match ('/^Juniper Networks, Inc. ex4200-48t internet router/', $sysDescr))
3512 updateStickerForCell ($objectInfo, 2, 907);
1f54e1ba 3513 break;
31237655 3514 case preg_match ('/^1991\.1\.3\.53\.1\.2$/', $sysObjectID): // TurboIron 24X
f7e717e9 3515 case preg_match ('/^2636\.1\.1\.1\.2\./', $sysObjectID): // Juniper
31237655
M
3516 checkPIC ('1-681');
3517 commitAddPort ($objectInfo['id'], 'console', '1-681', 'console', ''); // DB-9 RS-232 console
3518 break;
661b3fdb 3519 case preg_match ('/^1991\.1\.3\.45\./', $sysObjectID): // snFGSFamily
6c32c3ff 3520 case preg_match ('/^1991\.1\.3\.46\./', $sysObjectID): // snFLSFamily
ec523868 3521 case preg_match ('/^1991\.1\.3\.54\.2\.4\.1\.1$/', $sysObjectID): // FCX 648
84986395 3522 $exact_release = preg_replace ('/^.*, IronWare Version ([^ ]+) .*$/', '\\1', $sysDescr);
661b3fdb
DO
3523 updateStickerForCell ($objectInfo, 5, $exact_release);
3524 # FOUNDRY-SN-AGENT-MIB::snChasSerNum.0
8228bdb4 3525 $sysChassi = $device->snmpget ('enterprises.1991.1.1.1.1.2.0');
661b3fdb
DO
3526 if ($sysChassi !== FALSE or $sysChassi !== NULL)
3527 updateStickerForCell ($objectInfo, 1, str_replace ('"', '', substr ($sysChassi, strlen ('STRING: '))));
3528
3529 # Type of uplink module installed.
3530 # table: FOUNDRY-SN-AGENT-MIB::snAgentBrdMainBrdDescription
3531 # Possible part numbers are:
3532 # FGS-1XG1XGC (one fixed CX4 port)
3533 # FGS-2XGC (two fixed CX4 ports)
3534 # FGS-2XG (two XFP slots)
6c32c3ff
AA
3535 # And for FLS result (which is not handled here) would be:
3536 # 1991.1.1.2.2.1.1.2.1 = STRING: "FLS-24G 24-port Management Module"
3537 # 1991.1.1.2.2.1.1.2.3 = STRING: "FLS-1XG 1-port 10G Module (1-XFP)"
3538 # 1991.1.1.2.2.1.1.2.4 = STRING: "FLS-1XG 1-port 10G Module (1-XFP)"
3539 # (assuming, that the device has 2 XFP modules in slots 3 and 4).
3540
8228bdb4 3541 foreach ($device->snmpwalkoid ('enterprises.1991.1.1.2.2.1.1.2') as $module_raw)
661b3fdb
DO
3542 if (preg_match ('/^STRING: "(FGS-1XG1XGC|FGS-2XGC) /i', $module_raw))
3543 {
3544 $iftable_processors['fgs-uplinks']['dict_key'] = '1-40'; // CX4
3545 break;
3546 }
3547
3548 # AC inputs
3549 # table: FOUNDRY-SN-AGENT-MIB::snChasPwrSupplyDescription
3550 # "Power supply 1 "
3551 # "Power supply 2 "
8228bdb4 3552 foreach ($device->snmpwalkoid ('enterprises.1991.1.1.1.2.1.1.2') as $PSU_raw)
661b3fdb
DO
3553 {
3554 $count = 0;
3555 $PSU_cooked = trim (preg_replace ('/^string: "(.+)"$/i', '\\1', $PSU_raw, 1, $count));
3556 if ($count)
3557 {
3558 checkPIC ('1-16');
3559 commitAddPort ($objectInfo['id'], $PSU_cooked, '1-16', '', '');
3560 }
3561 }
3562 # fixed console port
3563 checkPIC ('1-681');
3564 commitAddPort ($objectInfo['id'], 'console', '1-681', 'console', ''); // DB-9 RS-232 console
661b3fdb 3565 break;
4eeadb79
DO
3566 case preg_match ('/^1916\.2\./', $sysObjectID): // Extreme Networks Summit
3567 $xos_release = preg_replace ('/^ExtremeXOS version ([[:digit:]]+)\..*$/', '\\1', $sysDescr);
3568 $xos_codes = array
3569 (
3570 '10' => 1350,
3571 '11' => 1351,
3572 '12' => 1352,
3573 );
3574 if (array_key_exists ($xos_release, $xos_codes))
3575 updateStickerForCell ($objectInfo, 4, $xos_codes[$xos_release]);
3576 checkPIC ('1-681');
3577 commitAddPort ($objectInfo['id'], 'console', '1-681', 'console', ''); // DB-9 RS-232
3578 checkPIC ('1-16');
3579 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
4eeadb79 3580 break;
8acd246d 3581 case preg_match ('/^6027\.1\./', $sysObjectID): # Force10
1e5a92d8 3582 commitAddPort ($objectInfo['id'], 'aux0', '1-29', 'RS-232', ''); // RJ-45 RS-232 console
8acd246d
DO
3583 $m = array();
3584 if (preg_match ('/Force10 Application Software Version: ([\d\.]+)/', $sysDescr, $m))
6dd5c55c 3585 {
8acd246d 3586 updateStickerForCell ($objectInfo, 5, $m[1]);
241db860 3587 $ftos_release = preg_replace ('/^([678])\..+$/', '\\1', $m[1]);
6dd5c55c
DO
3588 $ftos_codes = array
3589 (
3590 '6' => 1592,
3591 '7' => 1593,
3592 '8' => 1594,
3593 );
3594 if (array_key_exists ($ftos_release, $ftos_codes))
3595 updateStickerForCell ($objectInfo, 4, $ftos_codes[$ftos_release]);
3596 }
8acd246d
DO
3597 # F10-S-SERIES-CHASSIS-MIB::chStackUnitSerialNumber.1
3598 $serialNo = $device->snmpget ('enterprises.6027.3.10.1.2.2.1.12.1');
84ea7e6e
DO
3599 # F10-S-SERIES-CHASSIS-MIB::chSysPowerSupplyType.1.1
3600 if ($device->snmpget ('enterprises.6027.3.10.1.2.3.1.3.1.1') == 'INTEGER: 1')
3601 {
3602 checkPIC ('1-16');
3603 commitAddPort ($objectInfo['id'], 'PSU0', '1-16', 'PSU0', '');
3604 }
3605 # F10-S-SERIES-CHASSIS-MIB::chSysPowerSupplyType.1.2
3606 if ($device->snmpget ('enterprises.6027.3.10.1.2.3.1.3.1.2') == 'INTEGER: 1')
3607 {
3608 checkPIC ('1-16');
3609 commitAddPort ($objectInfo['id'], 'PSU1', '1-16', 'PSU1', '');
3610 }
8acd246d
DO
3611 if (strlen ($serialNo))
3612 updateStickerForCell ($objectInfo, 1, str_replace ('"', '', substr ($serialNo, strlen ('STRING: '))));
3613 break;
a5eaff9a 3614 case preg_match ('/^171\.10\.63\.8/', $sysObjectID): // D-Link DES-3052
13b28c20 3615 case preg_match ('/^202\.20\./', $sysObjectID): // SMC TigerSwitch
1ce6a44d
AD
3616 case preg_match ('/^674\.10895\.4/', $sysObjectID): // Dell PowerConnect
3617 case preg_match ('/^674\.10895\.300(3|4|7|9)/', $sysObjectID):
e326551d 3618 case preg_match ('/^674\.10895\.301(0|4|7|9)/', $sysObjectID):
a1fc412e 3619 case preg_match ('/^674\.10895\.302(0|1|8)/', $sysObjectID):
c23734f0 3620 case preg_match ('/^3955\.6\.1\.20(24|48)\.1/', $sysObjectID): // Linksys
1329ef2f 3621 case preg_match ('/^3955\.6\.50(24|48)/', $sysObjectID): // Linksys
f7e717e9 3622 case preg_match ('/^4526\.100\./', $sysObjectID): // NETGEAR (with console)
327fef16
M
3623 case preg_match ('/^11863\.1\.1\.1/', $sysObjectID): // TPLink
3624 case preg_match ('/^11863\.6\.10\.58/', $sysObjectID):
8595dfd0 3625 // one DB-9 RS-232 and one AC port
13b28c20
DO
3626 checkPIC ('1-681');
3627 commitAddPort ($objectInfo['id'], 'console', '1-681', '', ''); // DB-9 RS-232
3628 checkPIC ('1-16');
3629 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
13b28c20 3630 break;
f60a9008
AD
3631 case preg_match ('/^388\.18/', $sysObjectID): // Motorola RFS 4000
3632 // one RJ-45 RS-232 and one AC port
3633 checkPIC ('1-29');
3634 commitAddPort ($objectInfo['id'], 'console', '1-29', 'console', '');
3635 checkPIC ('1-16');
3636 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
3637 break;
78cfe89b
AD
3638 case preg_match ('/^207\.1\.14\./', $sysObjectID): // Allied Telesyn
3639 // one RJ-45 RS-232 and two AC ports
3640 checkPIC ('1-29');
3641 commitAddPort ($objectInfo['id'], 'console', '1-29', 'console', '');
3642 checkPIC ('1-16');
3643 commitAddPort ($objectInfo['id'], 'AC-in-1', '1-16', 'AC1', '');
3644 commitAddPort ($objectInfo['id'], 'AC-in-2', '1-16', 'AC2', '');
3645 break;
1b10e7cf
AD
3646 case preg_match ('/^674\.10895\.3000/', $sysObjectID):
3647 // one DB-9 RS-232, one 100Mb OOB mgmt, and one AC port
3648 checkPIC ('1-681');
3649 commitAddPort ($objectInfo['id'], 'console', '1-681', '', ''); // DB-9 RS-232
3650 checkPIC ('1-19');
3651 commitAddPort ($objectInfo['id'], 'mgmt', '1-19', '', '');
3652 checkPIC ('1-16');
3653 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
3654 break;
c2e802a4 3655 case preg_match ('/^43\.1\.16\.4\.3\./', $sysObjectID): // 3Com
1cd6eca3
AD
3656 $sw_version = preg_replace('/^.* Version 3Com OS ([^ ]+).*$/', '\\1', $sysDescr);
3657 updateStickerForCell ($objectInfo, 5, $sw_version);
3658
3659 // one RJ-45 RS-232 and one AC port
3660 checkPIC ('1-29');
3661 commitAddPort ($objectInfo['id'], 'console', '1-29', '', ''); // RJ-45 RS-232 console
3662 checkPIC ('1-16');
3663 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
3664 break;
ac02ab69
AD
3665 case preg_match ('/^10977\.11825\.11833\.97\.25451\.12800\.100\.4\.4/', $sysObjectID): // Netgear
3666 $sw_version = preg_replace('/^.* V([^ ]+).*$/', '\\1', $sysDescr);
3667 updateStickerForCell ($objectInfo, 5, $sw_version);
3668
49055269
AD
3669 // one AC port, no console
3670 checkPIC ('1-16');
3671 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
3672 break;
3673 case preg_match ('/^171\.10\.76\.10/', $sysObjectID): // D-Link DGS-1210-24
f7e717e9
AD
3674 case preg_match ('/^207\.1\.4\./', $sysObjectID): // Allied Telesyn AT-GS950/24
3675 case preg_match ('/^4526\.100\.4\.(6|10)/', $sysObjectID): // NETGEAR (without console)
ac02ab69
AD
3676 // one AC port, no console
3677 checkPIC ('1-16');
3678 commitAddPort ($objectInfo['id'], 'AC-in', '1-16', '', '');
3679 break;
2ea5fd28 3680 case preg_match ('/^30065\.1\.3011\./', $sysObjectID): // Arista
2ea5fd28
DO
3681 checkPIC ('1-29');
3682 commitAddPort ($objectInfo['id'], 'console', '1-29', 'IOIOI', '');
3683 $sw_version = preg_replace ('/^Arista Networks EOS version (.+) running on .*$/', '\\1', $sysDescr);
3684 updateStickerForCell ($objectInfo, 5, $sw_version);
f31831d4
DO
3685 if (strlen ($serialNo = $device->snmpget ('mib-2.47.1.1.1.1.11.1'))) # entPhysicalSerialNumber.1
3686 updateStickerForCell ($objectInfo, 1, str_replace ('"', '', substr ($serialNo, strlen ('STRING: '))));
2ea5fd28 3687 break;
a3520e4c
DO
3688 case preg_match ('/^119\.1\.203\.2\.2\./', $sysObjectID): # NEC
3689 checkPIC ('1-681');
3690 commitAddPort ($objectInfo['id'], 'console 0', '1-681', 'console', '');
3691 checkPIC ('1-16');
3692 commitAddPort ($objectInfo['id'], 'PS1', '1-16', '', '');
3693 commitAddPort ($objectInfo['id'], 'PS2', '1-16', '', '');
3694 break;
24ae7cd1
DO
3695 case preg_match ('/^26543\.1\.7\./', $sysObjectID): # IBM
3696 checkPIC ('1-29');
3697 commitAddPort ($objectInfo['id'], 'console', '1-29', '', ''); # RJ-45 RS-232 console
3698 break;
7d69a266 3699 default: // Nortel...
74aee2dc
DO
3700 break;
3701 }
56a797ef 3702 $ifInfo = array();
92df4b0e 3703 foreach ($device->snmpwalkoid ($ifDescr_tablename) as $oid => $value)
56a797ef 3704 {
92df4b0e 3705 $randomindex = preg_replace ("/^.*${ifDescr_tablename}\.(.+)\$/", '\\1', $oid);
5f2354ce 3706 $value = trim (preg_replace ('/^[^:]+: (.+)$/', '\\1', $value), '"');
92df4b0e 3707 $ifInfo[$randomindex]['ifDescr'] = $value;
56a797ef 3708 }
92df4b0e 3709 foreach ($device->snmpwalkoid ('ifPhysAddress') as $oid => $value)
56a797ef 3710 {
92df4b0e 3711 $randomindex = preg_replace ("/^.*ifPhysAddress\.(.+)\$/", '\\1', $oid);
56a797ef
DO
3712 $value = trim ($value);
3713 // NET-SNMP may return MAC addresses in one of two (?) formats depending on
3714 // DISPLAY-HINT internal database. The best we can do about it is to accept both.
3715 // Bug originally reported by Walery Wysotsky against openSUSE 11.0.
6a845dce 3716 if (preg_match ('/^string: [0-9a-f]{1,2}(:[0-9a-f]{1,2}){5}/i', $value)) // STRING: x:yy:z:xx:y:zz
56a797ef
DO
3717 {
3718 list ($dummy, $value) = explode (' ', $value);