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

jaikar gupta gupta.jaikar at gmail.com
Thu May 20 12:21:44 CEST 2010


Hello Aidan Diffey
*
*
*Thanks for the quick response.*
*
*Thanks & Regards
Jaikar Gupta


On Thu, May 20, 2010 at 3:27 PM, Aidan Diffey
<aidan.diffey at googlemail.com>wrote:

> 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