[SNMP4J] How to Verify the Snmp session is still alive.

Frank Fock fock at agentpp.com
Wed Feb 1 23:25:06 CET 2006


At the moment, calling TransportMapping.isListening() is the best way.
I have to admit that this call does not detect all terminations of a 
transport mapping.
I will change that for v1.7.

Best regards,
Frank

Marco Matchefts wrote:

>The Snmp object doesn't have an ::isAlive method to verify that it
>
>is still alive.  What is the best way to verify the snmp session is
>
>still alive?  It looks as though the Default TransportMapping
>implementations
>
>spawn a listener thread.  It is possible that they could crash.
>
>It would be nice to know that I could detect problems in the session
>
>and open a new one if necessary.  Any recommendations?  Thanks.
>
>_______________________________________________
>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





More information about the SNMP4J mailing list