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