Note: Much of this tutorial requires ucd-snmp-4.2.2 or higher!, so make sure you get it before running the commands found in this tutorial.
Note: A new tutorial for net-snmp 5.0 and above is available as well. The commands is
the ucd-snmp specific tutorial will not work as expected if you
are using net-snmp and not ucd-snmp.
The examples found below should give you enough of a starting point to begin developing simple programs using the ucd-snmp libraries. Here are the files that we are going to talk about and generate:
File | Description |
---|---|
Makefile | A simple makefile used to build the projects |
snmpdemoapp.c | The sample application code |
asyncapp.c | The asynchronous application code |
UCD-SNMP-TUTORIAL-MIB.txt | The MIB we'll be writing code for |
ustScalarSet.h | The mib module's header file |
ustScalarSet.c | The mib module's C source code |
ustMain.c | The main() code for a demon we'll be writing |
Note: of these demonstrations required ucd-snmp-4.1 or higher.
Last modified: Wednesday, 01-Aug-2018 04:41:28 UTC
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.