Re: [SNMP4J] Which library should I use?

2016-10-05 Thread Frank Fock
Hi, The code you used is just out-dated and was probably written for the 1.x releases of SNMP4J-Agent. But the issue is simple to fix: Just use the SnmpCommunityEntryRow instead MOTableRow as type for "row". Best regards, Frank Am 06.10.2016 um 07:22 schrieb BYEONG-GI KIM: Hello. I'm a new w

[SNMP4J] Which library should I use?

2016-10-05 Thread BYEONG-GI KIM
Hello. I'm a new who get started to learn snmp agent & manager implementations via snmp4j. I have a question; I've been practicing how the source code is written so that I copied and pasted several example codes from some blogs and websites like, http://www.jitendrazaa.com/blog/java/snmp/creatin

Re: [SNMP4J] Behaviour of ResponseListener in SNMP V3

2016-10-05 Thread Frank Fock
Hi Peter, From the provided send call alone, I cannot verify if the parameters are correctly setup. The SnmpUserTarget.this, for example, might not work if called in a constructor of that class. The pdu instance might be used concurrently by another thread (with same or different request ID

Re: [SNMP4J] TreeUtils & DefaultPDUFactory

2016-10-05 Thread Frank Fock
Hi Ron, You can upgrade to the latest SNMP4J version 2.5.2 and the issue you described should disappear. You can also fix the issue, with version 2.5.0 by setting the context engine ID to an empty OctetString in the Factory constructor. SNMP4J will then automatically replace the empty string w

[SNMP4J] TreeUtils & DefaultPDUFactory

2016-10-05 Thread Ronald Braswell
I am attempting to use TreeUtils with a DefaultPDUFactory using GETNEXT (the OID range is small). I have set engine discovery for USM during the initialization of the program to true. The target uses V3 and USM. I have successfully polled the target and have successfully received traps from t