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
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
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 =