Skip to content

Exporter is treating "String64" syntax as "octetstring" instead of "displayString" #1387

Description

@larsks

I'm using snmp_exporter to gather metrics from some Dell iDRAC devices. I noticed that string values were all showing up as hex strings (see the systemBIOSManufacturerName label, below):

systemBIOSManufacturerName{instance="10.2.11.112", job="idrac_snmp", systemBIOSIndex="1", systemBIOSManufacturerName="0x44656C6C20496E632E", systemBIOSchassisIndex="1"}	

These OIDs are delcared as String64 in the MIB:

systemBIOSManufacturerName                      OBJECT-TYPE
    SYNTAX      String64
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "0300.0050.0001.0011 This attribute defines the name of the manufacturer
        of the system BIOS."
    ::= { systemBIOSTableEntry 11 }

snmpwalk displays them like this:

$ snmpwalk -M mibs -m ALL -v2c -c public 10.2.11.132 IDRAC-MIB-SMIv2::systemBIOSManufacturerName
IDRAC-MIB-SMIv2::systemBIOSManufacturerName.1.1 = STRING: "Dell Inc."

Is the problem that snmp_exporter doesn't know about the String64 syntax? Evidence suggests that this is a Dell-ism. Is there a way to declare this an alias for displayString? It's going to be messy if I need to override all of these individually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions