The OpenHPI Project

Open Hardware Platform Interface

NetSNMP subagent development manual

Konrad Rzeszutek

Copyright © 2004 IBM Corporation


Table of Contents
Introduction
The Basics
Purpose of this Document
Document Scope
Terminology
Getting the pieces
Pre-requisities
Generation of skeleton code
mib2c
How should the sub-agent be generated ?
Understanding the sub-agent
The minimum
Makefile
Sub-agent daemon code
Header file
Header files
Context structure
Functions
Object IDentifier of the table
Textual names for leaf nodes
Enabling and disabling operations
C code
Initializiation process of sub-agent
Handler
Notify the helper function
Register the GET operation
Register compare function
Alternation and creation of row support
Miscellaneous
Registering handler with container
Generic compare function
Tree searching function
Creating and Writing (SNMP SET or user) to rows (and columns)
Row copy
Extracting index
Row deletion checking
Duplicating rows
Deleting rows
Creating rows
Writing to a row
RESERVE1 function
RESERVE2 function
ACTION
COMMIT function
FREE and UNDO function
Getting values
Appendix
NET-SNMP-EXAMPLES-MIB.txt
netSnmpIETFWGTable.h
netSnmpIETFWGTable.c

  Next >>>
  Introduction