- [10/09/2024] - CLI-0.1 https://github.com/yacth/snmp-sample-app/tree/CLI-0.1
- [10/09/2024] - GUI-0.1 https://github.com/yacth/snmp-sample-app/tree/GUI-0.1
The snmp-sample-app includes:
- A CLI version to run the program to send and receive packets using an SNMP agent through command lines.
- A GUI version to run the program to send and receive packets using an SNMP agent with a user interface made with ImGui.
To run the application, create a folder in which the snmp-sample-app will be installed, then run the following command using the terminal.
git clone https://github.com/yacth/snmp-sample-app.gitTo run the CLI application, follow the instructions:
- Open the terminal (
mingw64terminal on windows) into thepath/to/snmp-sample-appfolder. - Run the command
git checkout tags/CLI-0.1. - Run the command
xmaketo build the project. - Either use:
WinRunScript.batand follow the instructions- Run the command
xmake run Sensuron [IP_ADDRESS] [IP_PORT] [INPUT_OID] [OUTPUT_OID] [COMMAND]by giving all the parameters, for examplexmake run Sensuron localhost 1601 1.3.6.1.2.1.1.5.0 1.3.6.1.2.1.1.1.0 "Test Command".
To run the GUI application, follow the instructions:
- Open the terminal (
mingw64terminal on windows) into thepath/to/snmp-sample-appfolder. - Run the command
git checkout tags/GUI-0.1. - Run the command
xmaketo build the project. - Finally run the command
xmake run, the GUI application should open.
To use the app:
- Set the
Sensuron IP, theSensuron IP Port, theInput OIDfor the command data and theOutput OIDfor the received payload. - Set the char buffer of the
Command Dataand pressSend command.
