Hi Frank,
Ups, sorry (I should get some sleep before answering mails).
Perfect then.
Would it be possible in a future version to modify the constructor
public MultiThreadedMessageDispatcher(ThreadPool threadPool,
MessageDispatcher
decoratedDispatcher)
Hi Frank,
Ok, I did it and it is working.
I implemented a MessageDispatcher, basically copying the
MultithreadedMessageDispatcher.
Internally it also uses a decorated MessageDispatcher, and a TaskExecutor
instead of the ThreadPool (it is a
org.springframework.core.task.TaskExecutor, I use
Hi,
I have a problem using DefaultTCPTransportMapping.
I am using SNMP4J.jar version 1.10.1 to send SNMP GET over TCP.
I am using a unique TcpTransportMapping instance to send the SNMP commands
to various clients.
It seems that everything is ok while I get a SNMP GET response from the
clients,
Hi Frank,
Please let me know if you need more information to reproduce it.
I made further tests.
I checked with previous releases, but I have the same problem using SNMP4J
version 1.10.0 or 1.9.3d.
I make sure that commands over TCP are working (I mean not only the first
one) with the
Hi Frank,
First of all, thank you for the quick answer.
I downloaded the snapshot version of SNMP4J 1.10 (dated 07-Oct-2009 22:48
in your repository) and tried it.
It works, i.e. the SNMP commands over TCP keeps working after a
communication failure. I hope your fix will make it for the next
Hi Frank,
Thanks for providing another update so quickly.
I donwloaded and tried the snapshot version dated 12 October 2009 in
various environments.
As you said, I have no longer to wait for the connection timeout to
happen, now everything works right.
I think I found another problem, but I
Hi,
The following code works under Windows but hangs under AIX (when sending
the same command to the same client).
(code without the finally block has been tested and works perfectly under
both OS)
try{
//blablabla
final ResponseEvent responseEvent = snmp.send(pdu, target);
//blablabla
}
Hi Frank,
You were ritght, I had a little mistake in my log4.properties, traces were
logged twice but methods were only called once.
I had:
log4j.rootLogger=INFO, stdout
log4j.logger.org.snmp4j = DEBUG, stdout
Corrected it to:
log4j.rootLogger=INFO, stdout
log4j.logger.org.snmp4j = DEBUG
(We
Hi Frank,
I downloaded the snapshot (19 October 2009).
Here are the logs (I sent a SNMP get, the application keep hanging if I
use TcpTransportMapping.close(address) ).
Hope it helps.
Regards
[10/19/09 19:07:52:610 CEST] 002b SystemOut O
org.snmp4j.security.USM generateResponseMessage
Hi,
(sorry I had no time to try it yesterday).
I downloaded snapshot of 21 October 2009.
Here are the logs.
Regards.
[10/21/09 19:00:33:097 CEST] 0034 SystemOut O org.snmp4j.mp.MPv3
prepareOutgoingMessage Context engine ID of scoped PDU is empty! Setting
it to authoritative engine ID:
Hi Frank,
I have a random problem using SNMP4J version 1.10 SNAPSHOT 12/10/2009.
I know that SNMP4J 1.10.2 was released since then, but I cannot try it in
this environment right now. I hope to try it soon, to check if it solves
this problem.
My application hangs forever while sending a command
Hi Frank,
Is it possible to rebuild a TRAP object (PDUv1) just using data from the
log?
For example:
org.snmp4j.transport.DefaultUdpTransportMapping$ListenThread run
Received message from /10.xxx.x.xxx/162 with length 107:
Hi,
Thanks.
I got it working with the following code:
import java.nio.ByteBuffer;
import org.snmp4j.CommandResponder;
import org.snmp4j.CommandResponderEvent;
import org.snmp4j.MessageDispatcher;
import org.snmp4j.MessageDispatcherImpl;
import org.snmp4j.TransportMapping;
import
Hi Frank,
I noticed that SNMP4J 1.11 release fixes some leak when using
DefaultTcpTransportMapping([SFJ-22]), so I updated my jar with 1.11.
We use DefaultTcpTransportMapping to send command to our clients.
But while I was trying our app with the new jar, I noticed a high CPU
usage (near 100%)
Hi Frank,
Thanks for the quick answer, I will try to update and I will let you know.
(I am using ibm jdk 1.5.0 SR9, will try to update to at least SR10, since
it comes with some NIO fixes)
Regards
Brice
___
SNMP4J mailing list
SNMP4J@agentpp.org
Hi Frank,
I'am working on integrating SNMP4J in WAS 6.1 (with SNMP4JSettings).
I based my work on some IBM example code (i.e. not official code) that
provide the base for a J2EE thread factory under WAS 6.1.
The IBM code is available at :
Hi Frank,
Thanks for your advices.
I tried to use the IBM WAS ThreadFactory code, thinking this would match
what SNMP4J was expecting (a threadfactory) (and their WasTreadFactory was
wrapping new threads around WorkManager threads).
I switched my implementation to the one you suggested (got rid
Hi Frank,
I made some little changes in SpringTaskExecutorWorkerTaskImpl, now I use
the daemon parameter from SNMP4J.
I wrap the provided WorkerTask to use Spring SchedulingAwareRunnable, this
way, I can submit daemon tasks and normal tasks to the executor.
Now, I do not get the WAS warnings
Hi again,
I made a TimerFactory based on CommonJ TimerManager.
I include my current code in this post.
It was interesting: SNMP4J relies on java.util.TimerTask, and
java,util.Timer handle all the black magic for TimerTask (change state,
handle stack of TimerTask, ...).
CommonJ API is an
Hi Bangar,
In order to activate the logging for SNMP4J API in your application, you
can add the following line in your log4j.properties (your log4j.properties
had to be in your classpath):
log4j.logger.org.snmp4j = DEBUG
Regards
Brice
bangarappa bang.ch...@gmail.com
Enviado por:
Hi,
Jim, thanks for the patch you supplied.
I just tested it under Windows XP SP3 with IBM JDK 1.5 SR11 and it solves
the problem of high cpu usage. Our application work like with SNMP4J
1.10.2: commands are sent quickly over TCP and almost no CPU usage is
required (less than 8%), and when the
Hi,
I cheked Jim's patch for SNMP4J under AIX 5.3.0.0 with IBM JDK 1.5, it
also solves the problem of high CPU usage when sending SNMP command over
TCP.
Regards
___
SNMP4J mailing list
SNMP4J@agentpp.org
Hi,
I had a similar problem, I was getting a Unknown security name from USM.
I checked that the user was added correctly, and it was, but after doing
some debugging I noticed I was using a different USM.
My error was I was doing initialization twice in my application with
different USM (one
Hi,
@Bangar
So far, we did not run into socket port problems (maybe later with a
higher number of SNMP over TCP clients). As Frank stated, this seems to be
the default (and correct) behaviour of the underlying OS with sockets.
Inside the JVM, the socket.close() method get called, but the JVM
Hi Frank,
We have an application based on SNMP4J 1.11.x , and we are wondering if
there are any plans for SNMP4J 1.x corrective maintenance in the future,
or if we should think about migrating to SNMP4J 2.x soon.
Please, can you provide some information about SNMP4J 1.11.x branch.
Is it
Hi Frank,
Thanks for the fix.
I will download and use the snapshot version in our test environment, but
I will have to wait for SNMP4J 1.11.04 maintenance release to put it in
our production environment.
Regards
Brice
___
SNMP4J mailing list
Hi Frank,
Please, can you release SNMP4J 1.11.04, including fixes from version
2.1.0, as a security update release.
As I explained in my previous message (
http://lists.agentpp.org/pipermail/snmp4j/2012-January/004774.html ), I
would need an official release to put it in a production
Hi Frank,
Thanks for the release.
I will apply this update. I will let you know if it does not fix these TCP
ClosedChannelExceptions.
Regards
___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j
Hi Frank,
Back in April we updated snmp4j to version 1.11.0.4 to solve a race
condition in DefaultTcpTransportMapping ( [SFJ-57] ).
See previous threads:
http://lists.agentpp.org/pipermail/snmp4j/2012-January/004768.html
http://lists.agentpp.org/pipermail/snmp4j/2012-April/004815.html
Our app
29 matches
Mail list logo