I've been working with #SNMP library lately. My problem is whenever I send a GET request to an agent it replies with NoSuchObject ,however when I tried GETNEXT or GETBULK request it worked just fine. I literally did the same as examples codes do at github. I wonder why GET request didn't work while GETNEXT did.
Asked
Active
Viewed 147 times
0
-
Use a good enough SNMP book to learn what is `NoSuchObject`, and then the answer is clear. That has nothing to do with #SNMP. – Lex Li Sep 19 '19 at 14:39
-
Duplicate of https://stackoverflow.com/questions/17444248/reason-nosuchname-there-is-no-such-variable-name-in-this-mib – Gambit Support Sep 19 '19 at 14:59
-
the oid you try to get end with .0? – yogev levi Oct 07 '19 at 08:30
2 Answers
0
Those are two completely different SNMP operations.
When you GET an object, the object must exist otherwise you get NoSuchObject.
When you GETNEXT an object, you get the first object that exists after the OID you specified.
You should brush up on your SNMP knowledge before attempting to implement a manager.

Lightness Races in Orbit
- 378,754
- 76
- 643
- 1,055
0
the OID you try to GET ends with .0? GETNEXT does not need to end with .0 but for using GET you must identify the OID as a leaf. I'm guessing you just need to be more specific

yogev levi
- 369
- 1
- 4
- 21