Logo
Home page Net-SNMP

Archive Search:

Require all words?

Site Search:
Google
Guide to extending the UCD SNMP agent

Extending the UCD-SNMP agent

This series of documents describe the procedure for writing code to extend the functionality of the v4 UCD-SNMP network management agent. Modules written using this procedure will also work with the v5 Net-SNMP agent, though this will not take advantage of the new handler-based helper mechanisms. See the on-line documentation for more information and examples of that mechanism. We would be very interested in comment and feedback about how useful you find this description, and ways in which it could be improved.

The information is designed to be read in order - the structure being:

  1. Overview & Introduction
  2. MIB files, and how they relate to the agent implementation
  3. Header files
  4. The basic structure of module implementation code
  5. The details of non-table based implementations
  6. The details of simple table based implementations
  7. The details of more general table based implementations
  8. How to implement SET-able variables

While the document is intended to be generally self-contained, it does occasionally refer to code files shipped with the main UCD distribution (in particular the example module), and it may prove useful to have these files available for reference.

The 5.0 release line includes a new agent architecture, with a new handler-based API. While the traditional UCD-SNMP API described here can also be used, the new approach provides a number of additional facilities.


There's also a step-by-step checklist that you can use if adding your MIB module doesn't seem to be working.
All feedback should be directed to the author Dave Shield [an error occurred while processing this directive]

Valid CSS!


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.