Solved

Generating SNMP traps in Java

Posted on 2004-10-10
6
1,163 Views
Last Modified: 2007-12-19
hi all,

how can I a generate a SNMP trap from java ?
i want my external tools to monitor my java app.
0
Comment
Question by:shenlong_wc
  • 4
  • 2
6 Comments
 
LVL 12

Expert Comment

by:Giant2
ID: 12274099
You can use some API like JoeSNMP to generate the traps.

Bye, Giant.
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12274103
Another approach could be to generate the SNMP message for the trap.
But I suggest you to use API allready done:
http://www.opennms.org/files/releases/joeSNMP/

Hope this could help you.
Bye, Giant.
0
 

Author Comment

by:shenlong_wc
ID: 12274337
do you know of any examples / tutorials for using JoeSNMP, snmpTrapAppender or SNMP4J to send traps ?

i'm totally clueless in regards to their usage, info on google is sparse too.
Maybe i'm just not searching right
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 12

Accepted Solution

by:
Giant2 earned 100 total points
ID: 12274342
In the code you download there are some example.
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12355421
:)
0
 

Author Comment

by:shenlong_wc
ID: 12355476
sorry dude, i forgot to click "A" the other time, so it didn't close it properly
apologies !
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now