NetSNMP subagent development manual
Konrad Rzeszutek
Copyright © 2004 IBM Corporation
This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is currently available at http://www.opencontent.org/openpub/). Distribution of substantively modified version of this document is prohibited without the explicit permission of the copyright holder.
Other company, product, or service names may be trademarks or service marks of others.
- Table of Contents
- 1. Introduction
-
- 1.1. The Basics
-
- 1.1.1. Purpose of this Document
- 1.1.2. Document Scope
- 1.1.3. Terminology
- 2. Getting the pieces
-
- 2.1. Pre-requisities
-
- 2.1.1. Generation of skeleton code
- 2.1.2. mib2c
- 2.1.3. How should the sub-agent be generated ?
- 3. Understanding the sub-agent
-
- 3.1. The minimum
-
- 3.1.1. Makefile
- 3.1.2. Sub-agent daemon code
- 4. Header file
-
- 4.1. Header files
-
- 4.1.1. Context structure
- 4.1.2. Functions
- 4.1.3. Object IDentifier of the table
- 4.1.4. Textual names for leaf nodes
- 4.1.5. Enabling and disabling operations
- 5. C code
-
- 5.1. Initializiation process of sub-agent
-
- 5.1.1. Handler
- 5.1.2. Notify the helper function
- 5.1.3. Register the GET operation
- 5.1.4. Register compare function
- 5.1.5. Alternation and creation of row support
- 5.1.6. Miscellaneous
- 5.1.7. Registering handler with container
- 5.1.8. Generic compare function
- 5.1.9. Tree searching function
- 5.2. Creating and Writing (SNMP SET or user) to rows (and columns)
-
- 5.2.1. Row copy
- 5.2.2. Extracting index
- 5.2.3. Row deletion checking
- 5.2.4. Duplicating rows
- 5.2.5. Deleting rows
- 5.2.6. Creating rows
- 5.2.7. Writing to a row
- 5.2.8. RESERVE1 function
- 5.2.9. RESERVE2 function
- 5.2.10. ACTION
- 5.2.11. COMMIT function
- 5.2.12. FREE and UNDO function
- 5.3. Getting values
- 6. Appendix
-
- 6.1. NET-SNMP-EXAMPLES-MIB.txt
- 6.2. netSnmpIETFWGTable.h
- 6.3. netSnmpIETFWGTable.c
Next | ||
Introduction |