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

Aidan Diffey aidan.diffey at googlemail.com
Thu May 20 11:57:07 CEST 2010


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 gupta <gupta.jaikar at gmail.com>wrote:

> 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 at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>



More information about the SNMP4J mailing list