networking – snmpwalk returns hex-string for interfaces with no description


nterfaces with an precise description are returned as a string, for instance the interface with Device1ILO

Nonetheless the interfaces with no description configured, are returned as Hex-STRING 00.

How can I get it to return both an empty string or a “0” when utilizing the metrics exported to my snmp-exporter prometheus occasion? I’d somewhat not configure an outline for the interfaces which can be unused as a result of there are far too many for the time being.

snmpwalk -v2c -c SECRET HOST 1.3.6.1.2.1.31.1.1.1.18

iso.3.6.1.2.1.31.1.1.1.18. = STRING: “Device1ILO”
iso.3.6.1.2.1.31.1.1.1.18. = Hex-STRING: 00 00

For reference that is the essential IF-MIB module and that is the IfAlias – {Hardware} is a Dell S4820T



Source_link

Leave a Reply

Your email address will not be published.