View Issue Details

IDProjectCategoryView StatusLast Update
629RackTablesSNMPpublic2012-11-10 22:06
Reporterwimg Assigned Toadoom42  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.20.1 
Target Version0.20.2Fixed in Version0.20.2 
Summary629: Support for identical ifDescr
DescriptionWe have several D-Link DGS-1210-24 switches which have an identical ifDescr on all interface (see below). I tried adding the switch but I can't create a regex to be able to add the port number to this. Is there any other way to do this ?


IF-MIB::ifDescr.1 = STRING: Ethernet Interface
IF-MIB::ifDescr.2 = STRING: Ethernet Interface
IF-MIB::ifDescr.3 = STRING: Ethernet Interface
IF-MIB::ifDescr.4 = STRING: Ethernet Interface
IF-MIB::ifDescr.5 = STRING: Ethernet Interface
IF-MIB::ifDescr.6 = STRING: Ethernet Interface
IF-MIB::ifDescr.7 = STRING: Ethernet Interface
IF-MIB::ifDescr.8 = STRING: Ethernet Interface
IF-MIB::ifDescr.9 = STRING: Ethernet Interface
IF-MIB::ifDescr.10 = STRING: Ethernet Interface
IF-MIB::ifDescr.11 = STRING: Ethernet Interface
IF-MIB::ifDescr.12 = STRING: Ethernet Interface
IF-MIB::ifDescr.13 = STRING: Ethernet Interface
IF-MIB::ifDescr.14 = STRING: Ethernet Interface
IF-MIB::ifDescr.15 = STRING: Ethernet Interface
IF-MIB::ifDescr.16 = STRING: Ethernet Interface
IF-MIB::ifDescr.17 = STRING: Ethernet Interface
IF-MIB::ifDescr.18 = STRING: Ethernet Interface
IF-MIB::ifDescr.19 = STRING: Ethernet Interface
IF-MIB::ifDescr.20 = STRING: Ethernet Interface
IF-MIB::ifDescr.21 = STRING: Ethernet Interface
IF-MIB::ifDescr.22 = STRING: Ethernet Interface
IF-MIB::ifDescr.23 = STRING: Ethernet Interface
IF-MIB::ifDescr.24 = STRING: Ethernet Interface
TagsNo tags attached.

Activities

adoom42

adoom42

2012-10-09 02:10

administrator   ~0000861

Please upload a complete snmpwalk from one of the switches. There may be some other OID which returns unique interface names.
wimg

wimg

2012-10-09 02:17

reporter  

switch.out (165,624 bytes)
wimg

wimg

2012-10-09 02:18

reporter   ~0000863

snmpwalk uploaded - thanks in advance for the help !
adoom42

adoom42

2012-10-09 07:04

administrator   ~0000865

I see from the data that some unique interface names are provided by another OID:
IF-MIB::ifName.1 = STRING: Slot0/1
IF-MIB::ifName.2 = STRING: Slot0/2
IF-MIB::ifName.3 = STRING: Slot0/3

You can instruct RackTables to use ifName by specifying it as the ifDescr attribute in the $known_switches array. Example:

  '674.10895.3007' => array
  (
    'dict_key' => 347,
    'text' => 'PowerConnect 3448: 48 RJ-45/10-100TX + 2 SFP/1000 + 2 RJ-45/10-100-1000T(X) ports',
    'processors' => array ('dell-g1-to-g2-1000SFP', 'dell-g3-to-g4-1000T', 'dell-any-100TX'),
    'ifDescrOID' => 'ifName',
  )

http://wiki.racktables.org/index.php/RackTablesDevelGuide#SNMP_sync has some more details. Please attach the patch here when you're done.
adoom42

adoom42

2012-11-10 22:06

administrator   ~0000981

The poster did not submit a patch so I did it myself.

Issue History

Date Modified Username Field Change
2012-10-09 01:01 wimg New Issue
2012-10-09 01:01 wimg Status new => assigned
2012-10-09 01:01 wimg Assigned To => adoom42
2012-10-09 02:10 adoom42 Note Added: 0000861
2012-10-09 02:10 adoom42 Status assigned => feedback
2012-10-09 02:17 wimg File Added: switch.out
2012-10-09 02:18 wimg Note Added: 0000863
2012-10-09 02:18 wimg Status feedback => assigned
2012-10-09 07:04 adoom42 Note Added: 0000865
2012-11-10 22:06 adoom42 Note Added: 0000981
2012-11-10 22:06 adoom42 Status assigned => closed
2012-11-10 22:06 adoom42 Resolution open => fixed
2012-11-10 22:06 adoom42 Fixed in Version => 0.20.2
2012-11-10 22:06 adoom42 Target Version => 0.20.2