interfacetable_v3t icon indicating copy to clipboard operation
interfacetable_v3t copied to clipboard

Interface description returned as HEX-STRING

Open Tontonitch opened this issue 1 year ago • 2 comments

[DEBUG] |main::Get_InterfaceNames| Index=14 Descr="57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 49 50" (long cache: 7200) [DEBUG] |main::Get_InterfaceNames| Duplicate interface description detected. Appending the index. Name will be now "57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 49 50 (14)" [DEBUG] |main::Get_InterfaceNames| Interface name quite long! (> 40 char.). Name: "57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 49 50 (14)" [DEBUG] |main::Get_InterfaceNames| ifName="57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 49 50 (14)" (normalized: "57Q2041Q204EQ2020Q204DQ2069Q206EQ2069Q2070Q206FQ2072Q2074Q2020Q2028Q2049Q2050Q20Q2814Q29") [DEBUG] |main::Get_InterfaceNames| Index=19 Descr="76 6D 78 6E 65 74 33 20 45 74 68 65 72 6E 65 74" (long cache: 7200) [DEBUG] |main::Get_InterfaceNames| Duplicate interface description detected. Appending the index. Name will be now "76 6D 78 6E 65 74 33 20 45 74 68 65 72 6E 65 74 (19)" [DEBUG] |main::Get_InterfaceNames| Interface name quite long! (> 40 char.). Name: "76 6D 78 6E 65 74 33 20 45 74 68 65 72 6E 65 74 (19)" [DEBUG] |main::Get_InterfaceNames| ifName="76 6D 78 6E 65 74 33 20 45 74 68 65 72 6E 65 74 (19)" (normalized: "76Q206DQ2078Q206EQ2065Q2074Q2033Q2020Q2045Q2074Q2068Q2065Q2072Q206EQ2065Q2074Q20Q2819Q29")

And directly with snmpwalk: root@monitorsrv2:~/.snmp# snmpwalk -v 2c -c xxxxx hostname 1.3.6.1.2.1.2.2.1.2 iso.3.6.1.2.1.2.2.1.2.1 = Hex-STRING: 53 6F 66 74 77 61 72 65 20 4C 6F 6F 70 62 61 63 6B 20 49 6E 74 65 72 66 61 63 65 20 31 00 iso.3.6.1.2.1.2.2.1.2.2 = Hex-STRING: 57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 4C 32 54 50 29 00 iso.3.6.1.2.1.2.2.1.2.3 = Hex-STRING: 57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 53 53 54 50 29 00 iso.3.6.1.2.1.2.2.1.2.4 = Hex-STRING: 57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 49 4B 45 76 32 29 00 iso.3.6.1.2.1.2.2.1.2.5 = Hex-STRING: 57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 50 50 54 50 29 00 iso.3.6.1.2.1.2.2.1.2.6 = Hex-STRING: 57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 50 50 50 4F 45 29 00 iso.3.6.1.2.1.2.2.1.2.7 = Hex-STRING: 57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 49 50 29 00 iso.3.6.1.2.1.2.2.1.2.8 = Hex-STRING: 57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 49 50 76 36 29 00 iso.3.6.1.2.1.2.2.1.2.9 = Hex-STRING: 57 41 4E 20 4D 69 6E 69 70 6F 72 74 20 28 4E 65

Tontonitch avatar Apr 14 '23 18:04 Tontonitch

That's because snmp packages come without MIB files due to license reasons, loading of MIBs is disabled by default.

  1. load MIBs in /usr/share/snmp/mibs, especially IF-MIB.txt, for example from https://github.com/net-snmp/net-snmp/tree/master/mibs
  2. enable MIB loading by default by commenting "mibs :" in /etc/snmp/snmp.conf

Tested on Ubuntu 20.04.5 LTS

Tontonitch avatar Apr 14 '23 18:04 Tontonitch

Needs an entry in the FAQ / troubleshooting / installation procedure

Tontonitch avatar Apr 14 '23 18:04 Tontonitch