Search code examples
javasnmp

sending traps from a Java application


What is the quickest simplest way to send a trap from a Java application?

Thanks in Advance!


Solution

  • I use SNMP4J for this.

    This javadoc might help you write your code. You can use the Snmp.trap() method