MT #613 - Adding support for Dell 55xx Powerconnect switches 267/head
authorMarc Runkel <marc@runkel.org>
Sun, 23 Sep 2012 18:13:00 +0000 (19:13 +0100)
committerDenis Ovsienko <denis@ovsienko.info>
Tue, 28 Sep 2021 16:34:47 +0000 (17:34 +0100)
wwwroot/inc/snmp.php

index 7e233a7141422d943bdd8b72ceb2619e5904f7bf..daf2088e2e0f7257bffcdb3fc3b63039c6f94654 100644 (file)
@@ -2439,6 +2439,24 @@ $iftable_processors['avaya-ers-45-to-48-combo-SFP'] = array
        'try_next_proc' => TRUE,
 );
 
+$iftable_processors['dell-5500-10000SFP'] = array
+(
+       'pattern' => '@^te(\d+)/(\d+)/(\d+)$@',
+       'replacement' => 't\\1/\\3',
+       'dict_key' => '9-1084',
+       'label' => '\\1/\\3',
+       'try_next_proc' => FALSE,
+);
+
+$iftable_processors['dell-5500-1000T'] = array
+(
+       'pattern' => '@^gi(\d+)/(\d+)/(\d+)$@',
+       'replacement' => 'g\\1/\\3',
+       'dict_key' => 24,
+       'label' => '\\1/\\3',
+       'try_next_proc' => FALSE,
+);
+
 global $known_switches;
 $known_switches = array // key is system OID w/o "enterprises" prefix
 (
@@ -4599,6 +4617,20 @@ $known_switches = array // key is system OID w/o "enterprises" prefix
                'text' => 'HP%GPASS%HP A5120-48G-PoE+ EI (JG237A)',
                'processors' => array ('h3c-49-to-52-SFP','h3c-any-Gb','h3c-any-SFP+'),
        ),
+       '674.10895.3030' => array
+       (
+               'dict_key' => 1791,
+               'text' => 'PowerConnect 5524: 24 RJ-45/10-100-1000T(X) + 4 10G ports',
+               'processors' => array ('dell-5500-10000SFP','dell-5500-1000T'),
+               'ifDescrOID' => 'ifName',
+       ),
+       '674.10895.3031' => array
+       (
+               'dict_key' => 1792,
+               'text' => 'PowerConnect 5548: 48 RJ-45/10-100-1000T(X) + 4 10G ports',
+               'processors' => array ('dell-5500-10000SFP','dell-5500-1000T'),
+               'ifDescrOID' => 'ifName',
+       ),
 );
 
 global $swtype_pcre;
@@ -4965,6 +4997,7 @@ function doSwitchSNMPmining ($objectInfo, $device)
        case preg_match ('/^674\.10895\.4/', $sysObjectID): // Dell PowerConnect
        case preg_match ('/^674\.10895\.300(3|4|7|9)/', $sysObjectID):
        case preg_match ('/^674\.10895\.301(0|4|7|9)/', $sysObjectID):
+       case preg_match ('/^674\.10895\.303(0|1)/', $sysObjectID):
        case preg_match ('/^674\.10895\.302(0|1|8)/', $sysObjectID):
        case preg_match ('/^3955\.6\.1\.20(24|48)\.1/', $sysObjectID): // Linksys
        case preg_match ('/^3955\.6\.50(24|48)/', $sysObjectID): // Linksys