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