[SNMP4J] A Simple Trap Receiver using snmp4j

2010-08-17 Thread Tsiyona
Hello, I am trying to write a simple snmp manager that listens to traps on port 162 and processes them. This manager will only handle traps, and does not need to send commands to agents. Attached is the code I wrote. It is straightforward, but it does not work - I do not get any snmp traps. I

Re: [SNMP4J] A Simple Trap Receiver using snmp4j

2010-08-17 Thread jaikar gupta
Hi, I had also the same problem, i had uses the the same methodology, but when i change the TRAP_ADRESS to 0.0.0.0/162, the it starts receiving TRAPS. try this may this will help you. Thanks Regards Jaikar Gupta On Tue, Aug 17, 2010 at 2:06 PM, Tsiyona tsiy...@gmail.com wrote: Hello, I

Re: [SNMP4J] Socket closed error in Windows 7

2010-08-17 Thread Frank Fock
Hi, There is an error in your program: main may return before the thread you started is finished. It is not related to SNMP4J other than the new release might be executed with a different speed on your system. Best regards, Frank Am 17.08.2010 um 18:30 schrieb varma datla

Re: [SNMP4J] Socket closed error in Windows 7

2010-08-17 Thread varma datla
Hello Frank, I apologize for that silly mistake and thanks for pointing it out. I've added a CountDownLatch so that the main() wouldn't exit unit all requests are being responded. Actually, we had this running in Tomcat..but just want to have a standalone program to reproduce the problem