[SNMP4J] Strange problem with SnmpV3 traps.

Frank Fock fock at agentpp.com
Thu Nov 1 19:38:17 CET 2007


Hi Xinin,

What you are observing is normal. On some OS, reusing
a port shortly after another application has closed it,
is not possible. Instead of using a defined port, use
port "0" to get an arbitrary free port.

Best regards,
Frank

Xinxin Song schrieb:
> Hi Frank,
>
> I wrote a class SnmpAgentV3.java (singletion), actually it is not 
> really a Snmp agent cause its main function is to send V3 traps.  And 
> I wrote a class SnmpV3Receiver.java to receive and printout the V3 
> traps (Please see the attched files). Then I wrote a 
> SnmpAgentCaller.java to call the SnmpAgentV3 to send out V3 traps in 
> different ways.
>
> The strange problem is: If I get a instance of SnmpAgentV3.java then 
> use it to send a few traps then close it and re-get the same instance 
> and then send another few V3 traps, I can repeat this close and 
> re-opening thing for a few times, and the SnmpV3Receiver shows all the 
> traps. But after 4-6 rounds (in a few minutes), the SnmpV3Receiver 
> stops showing anything altough the SnmpAgentCaller is still keeping 
> sending traps.  If I don't close the instance and use the same 
> instance to send V3 traps, I can do it without problem for one hour.
>
> Have I done anything incorrectly there?
>
> Thanks,
> Xinxin
>
>
> ----- Original Message ----- From: "Frank Fock" <fock at agentpp.com>
> To: <dhay at lexmark.com>
> Cc: <snmp4j at agentpp.org>
> Sent: Monday, October 29, 2007 4:04 PM
> Subject: Re: [SNMP4J] Extending Agent
>
>
>>
>> Hi David,
>>
>> Although SNMP4J-Agent is specifically designed for SNMP,
>> it can also be used to support other protocols. JMX is
>> one of it.
>>
>> The hinge-points could be the MOServer and ManagedObject
>> interfaces. I could give more details if you give me more
>> details on the protocol/technology in mind.
>>
>> Best regards,
>> Frank
>>
>> dhay at lexmark.com wrote:
>>> Is everything in the SNMP4J Agent SNMP-specific?  Or could I 
>>> feasibly extend it to support other protocols?  If so, where are the 
>>> hinge-points?
>>>
>>> cheers,
>>>
>>> David
>>> _______________________________________________
>>> SNMP4J mailing list
>>> SNMP4J at agentpp.org
>>> http://lists.agentpp.org/mailman/listinfo/snmp4j
>>
>> -- 
>> AGENT++
>> http://www.agentpp.com
>> http://www.mibexplorer.com
>> http://www.mibdesigner.com
>>
>> _______________________________________________
>> SNMP4J mailing list
>> SNMP4J at agentpp.org
>> http://lists.agentpp.org/mailman/listinfo/snmp4j
>>





More information about the SNMP4J mailing list