UCD-SNMP Tutorial -- Toolkit


Note: Much of this tutorial requires ucd-snmp-4.2.2!, 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.

Sections

  1. Programming a simple application.
  2. Programming a asynchronous application.
  3. Programming a mib module to serve information described by an SNMP MIB.
  4. Compiling the mib module above to be used as a dynamically loaded shared object.
  5. Writing a subagent program to attach to the master SNMP agent using the mib module from above.

Last modified: Mon Mar 25 08:39:54 PST 2002
Powered by: SourceForge Logo