问题
What is the quickest simplest way to send a trap from a Java application?
Thanks in Advance!
回答1:
I use SNMP4J for this.
This javadoc might help you write your code. You can use the Snmp.trap() method
来源:https://stackoverflow.com/questions/3329378/sending-traps-from-a-java-application