-
Notifications
You must be signed in to change notification settings - Fork 48
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
Why is the OID required to start with .1.3? #4
Comments
This error is generated when WapSNMP does not understand the data type of the object returned by the SNMP Agent (the switch/router/... you're monitoring). This is not the result of the OID starting with .1.3. The reason almost every OID starts with 1.3 is that this is the space allocated to public, shared OIDs. Everything outside of it is vendor-specific. This usually means that these numbers are temporary, in the sense that after a software upgrade of the router or switch they may not be available anymore. Of course it also means it's where the more interesting stuff is. |
I am unsure what to do with this exactly since the OID you provided .1.0.8802 is a table identifier. Tables themselves do not have an object returned, the first instance should be 1.0.8802.1.1.1.1.1.1.0 . May I ask where you're seeing this, what device/version ? Ideally I'd love a tcpdump of the data that |
OID would be .1.0.8802.1.1.2.1.5.32962.1.2.3.1.2.2.1 its from a DLINK DGS-1500. Of course the rewritten OID can't be found... Its invalid indeed. |
The request which produces this dump:
|
Any chance you can send me the data dump (the file) that produces the error ? I can't seem to find the oid you mentioned here in the data you pasted. Just tcpdump -w log.pcap, start the program to generate the error, and get log.pcap to me. ( chr -no spaces- istop -nothing here- hedevriese -at goes here- gmail.com). |
Dump should arrive shortly. I can't find the OID either - and I think this is the problem ;). The 1.0.8802 get send as 1.3.8802. |
The code which does the "rewrite" of the OID is in oid.go in DecodeOID() lines 70-72:
why is this necessary? |
and again on line 99-102:
|
If I change
to
it works as expected. But it breaks all OIDs starting with 1.3 of course. I could write some edge-case patch, but that does not feel like a proper solution... |
.I have a use-case where I need to lookup .1.0.8802 OIDs - they are perfectly fine and work, but I can't use them with your library.
If I remove the check, the requests seem to work, but all I get for a response is a "did not understand type 128" which looks like "No Instance found" - but there is an instance for sure, because if I look it up using snmpget it returns a STRING.
The text was updated successfully, but these errors were encountered: