I am trying to use SNMP4J to do a SNMP bulkget. When ever I use SNMP4J to make the call I get returned a responseEvent error that says "General Variable Binding error" and the data returned is equal to Null.
To debug: I print out, to the console, the exact OID and version number that I am using in SNMP4J. I then use the printed out data to do an snmpwalk on the command line. But I get back valid results. So I know I am sending SNMP4J the correct pdu with the correct OID, version number, max repititions, etc.
I have used SNMP4J and this code I wrote succesffuly to monitor other devices for years. So I don't know what is different this time. So this is leaving me stumped. Why would I get back "general variable binding error?" What causes that error? Ideas to debug?
Can that be reproduced? If so, your first action should be using Wireshark or Microsoft Network Monitor to capture network packets.
My guess is that suddenly the agent gives you a GenErr response, which is not something surprising,
http://www.ietf.org/rfc/rfc1157.txt