snmpsharp-snmp

GetRequestMessage doesn't reply correctly while GetNextRequestMessage does with #SNMP


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.


Solution

  • 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