vii
Chapter 5: Using the MIBMAN Utility ................................................ 31
Overview ...................................................................................................................... 32
SNMP .................................................................................................................. 32
Scalar MIB objects.............................................................................................. 33
MIB tables ........................................................................................................... 33
Traps....................................................................................................................34
Action routines .................................................................................................. 35
Implementing a MIB: an example................................................................... 35
Converting an SNMP MIB into C code .................................................................... 35
Step 1: Using SMICng .......................................................................................35
Step 2: Using MIBMAN.................................................................................... 36
Step 3: Final integration.................................................................................... 49
Writing action routines..................................................................................... 49
Action routines for scalar objects ....................................................................49
Action routines for tables ................................................................................. 55
How the table’s indexing scheme works ....................................................... 55
How rows are inserted and deleted................................................................ 55
SNMP OID and string index values ............................................................... 64
Chapter 6:
Using the Advanced Web
Server PBuilder Utility .......................................................... 65
Overview ...................................................................................................................... 66
The PBuilder utility........................................................................................... 66
About the Advanced Web Server Toolkit documentation.......................... 67
Running the PBuilder utility......................................................................................67
Linking the application with the PBuilder output files .........................................69
security.c file ...................................................................................................... 69
cgi.c and file.c files............................................................................................. 69
Comment tags .............................................................................................................. 70
Creating Web pages .................................................................................................... 70
AWS custom variables...................................................................................... 71
Data types........................................................................................................... 72
Displaying variables .........................................................................................72