Java swing GUI application for windows desktops. The application was developed to aid testing of monitoring devices for SNMP enterprise MIB files.
Currently supports v1 and v2c snmp traps (tested). SNMPv3 method needs to be tested, and maybe tweaked.
####Inputs:
#####Server Tab
Servers: JComboBox (Editable): FQDN Server or IP address or SNMP Trap receiver
Port: JTextField (Editble): Port number (Default 162) tyhe SNMP receiver is listening on
Community String: JTextField (Editble): Used for SNMPv1 and 2c
#####Config Tab
OID: JTextField (Editable): Enterprise ID or the MIB file
SNMP: RadioButton: v1 v2 or v3 options
Specific: JTextField (Editable): Specific trap number (Example 12345)
#####Varbinds Tab
Var 1-20: JTextField (Editable): Variable bindings to pass into trap for parsing
To clone this repository:
git clone https://github.com/mafitconsulting/snmp_trap_simulator
Once the repository is cloned, there will be a requirement to customise the code as per users requirement
To clone this repository:
git clone https://github.com/mafitconsulting/snmp_trap_simulator
Once the repository is cloned, there will be a requirement to customise the code as per users requirement
####Runtime jre 1.6 or above ####Development Java JDK 6 or above
Netbeans IDE 8.1 (optional)
As an example of how the GUI application for distribution runs from the command line:
Navigate to the project's dist folder in the location where you cloned the git repo run the project from the command line, go to the dist folder and type the following:
java -jar "SNMPTrapSimulator.jar"
To distribute this project, zip up the dist folder (including the lib folder) and distribute the ZIP file.
You'll need to recompile all the classes if you customised the classes.
Netbeans 8.1.
Notes:
When you build a Java application project that has a main class, the IDE automatically copies all of the JAR files on the projects classpath to your projects dist/lib folder. The IDE also adds each of the JAR files to the Class-Path element in the application JAR files manifest file (MANIFEST.MF).
Mark Fieldhouse - Mafitconsulting - Swing interface and SNMP trap methods.
Frank Fock and Jochen Katz - SNMP4J API - http://www.snmp4j.org/
This project is licensed under the MIT License.
Please see notes for SNMP4J API http://www.snmp4j.org/ Open Source license Apache 2.0 )