[SNMP4J] automatic reconnect snmp agent
Василий
basvas at mail.ru
Wed Aug 8 11:58:58 CEST 2012
Hello, i deploy snmp applocation snmp agent
and i want that connect is lost my application automatic reconnect to host
i tired
TransportMapping transport = new DefaultUdpTransportMapping();
while (true)
if (transport.isListening() == false)
{ int i=0;
System.out.println("Error connection.. \t"+ i++ );
Thread.sleep(500);
snmp = new Snmp(transport);
transport.listen();
}
but dont work
Did you know about event connection or any kind for my idea?
ps
target.setRetries(0) and target.setTimeout(0);
dont to offer
More information about the SNMP4J
mailing list