Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface description returned as HEX-STRING #62

Open
Tontonitch opened this issue Apr 14, 2023 · 2 comments
Open

Interface description returned as HEX-STRING #62

Tontonitch opened this issue Apr 14, 2023 · 2 comments

Comments

@Tontonitch
Copy link
Owner

Tontonitch commented Apr 14, 2023

[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
Copy link
Owner Author

Tontonitch commented Apr 14, 2023

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
Copy link
Owner Author

Needs an entry in the FAQ / troubleshooting / installation procedure

@Tontonitch Tontonitch self-assigned this Apr 14, 2023
@Tontonitch Tontonitch added this to the v1.01 milestone Apr 14, 2023
@Tontonitch Tontonitch removed this from the v1.01 milestone Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant