[SNMP4J] trap error

2012-07-08 Thread dajiang
hi frank, I don't quite understand why you said receiver is misconfigured. I used same command line setting for those two receivers (SnmpRequest.java). My hardware setting is: one device sends traps to two different destination computers. I found your comments in one of the previous posts as

[SNMP4J] seek clarification on SNMP v3 set operation

2012-04-13 Thread dajiang
Hi list, Here is my question or puzzle: Based on SnmpRequest in the SNMP4J package, I am writing some Java code to do SNMP (v3) set on some device. Basically it works. For my curiosity, I use Wireshark to capture packet exchanges between my code and the device; and compare them with a case

[SNMP4J] snmp set value null

2011-11-30 Thread dajiang
Hi, I have problem sending set pdu. here is my code: PDU pdu = new PDU(); VariableBinding vb = new VariableBinding(oid); Variable v = new Integer32(value); vb.setVariable(v); pdu.addOID(vb); snmp.set(pdu, getTarget()); from the snmp pkt I captured, the value is always NULL. BTW, how to search

[SNMP4J] snmp set value null

2011-11-30 Thread dajiang
Hi Frank, Thx for ur reply. I searched the FAQ, still couldn't find the solution. I also read through SnmpRequest.java, yet cannot figure out the trick. Can you point out what I did wrongly or missed anything? Best Regards DJ ___ SNMP4J mailing list