vi
Chapter 3: Using the MIBMAN Utility .................................................19
Overview ...................................................................................................................... 20
SNMP.................................................................................................................. 20
Scalar MIB objects ............................................................................................. 21
MIB tables........................................................................................................... 21
Traps ................................................................................................................... 22
Action routines .................................................................................................. 22
Implementing a MIB: an example .................................................................. 23
Converting an SNMP MIB into C code.................................................................... 23
Step 1: Using SMICng....................................................................................... 23
Step 2: Using MIBMAN.................................................................................... 24
Step 3: Final integration ................................................................................... 36
Writing action routines............................................................................................... 37
Action routines for scalar objects.................................................................... 37
Action routines for tables................................................................................. 42
SNMP OID and string index values............................................................... 51
Chapter 4:
Using the Advanced Web Server
PBuilder Utility .............................................................................53
Overview ...................................................................................................................... 54
The PBuilder utility........................................................................................... 54
About the Advanced Web Server Toolkit documentation ......................... 55
Running the PBuilder utility ..................................................................................... 55
Linking the application with the PBuilder output files......................................... 57
security.c file ...................................................................................................... 57
cgi.c and file.c files ............................................................................................ 57
Comment tags.............................................................................................................. 57
Creating Web pages.................................................................................................... 58
AWS custom variables ..................................................................................... 58
Data types........................................................................................................... 60
Displaying variables ......................................................................................... 60