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