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