[SNMP4J] geting the IP address and sender OID of trap sending equipment

2010-05-20 Thread jaikar gupta
Hello Friends, I would like to know, how i can get the IP address and sender OID of trap sending equipment in processPdu method. Thanks Regards Jaikar Gupta ___ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j

Re: [SNMP4J] geting the IP address and sender OID of trap sending equipment

2010-05-20 Thread Aidan Diffey
The processPdu method takes a CommandResponderEvent object. Using this, you can do UdpAddress udpHostAdress = (UdpAddress) event.getStateReference(). getAddress(); Then, you can do udpHostAdress.getInetAddress().getHostAddress() Cheers On Thu, May 20, 2010 at 10:15 AM, jaikar

Re: [SNMP4J] geting the IP address and sender OID of trap sending equipment

2010-05-20 Thread jaikar gupta
Hello Aidan Diffey * * *Thanks for the quick response.* * *Thanks Regards Jaikar Gupta On Thu, May 20, 2010 at 3:27 PM, Aidan Diffey aidan.dif...@googlemail.comwrote: The processPdu method takes a CommandResponderEvent object. Using this, you can do UdpAddress udpHostAdress =