SNMP Manager Programmer's Guide
Programming Examples
SNMP Manager Programmer’s Guide–134249
2-2
Manager Logic
Later in this section, you will find descriptions of these source code files:
•
The subsection entitled Overview of Source Code Structure on page 2-5 contrasts
the high-level structure of managers supporting UDP and IPC communication with
that of managers supporting only UDP communication. It also examines the
contents of snmpfsc and its related header file, snmpfsh, which are used by all the
managers that support both UDP and IPC.
•
Overview of Source Code Structure also describes some utility functions, referred to
as common utilities, used by all the sample managers.
•
One subsection per sample manager describes the source code unique to each
manager.
Table 2-2. Sample Manager Source Code Files
Sample
Manager
C File
Names
System File
Names File Descriptions
SNMPGT snmpgt.c snmpgtc C source code for main control
block
SNMPGET snmpfs.c
snmpget.c
snmpfsc
snmpgetc
C source code for packet encoding
and decoding
C source code for main control
block
SNMPNEXT snmpfs.c
snmpnxt.c
snmpfsc
snmpnxtc
C source code for packet encoding
and decoding
C source code for main control
block
SNMPSET snmpfs.c
snmpset.c
snmpfsc
snmpsetc
C source code for packet encoding
and decoding
C source code for main control
block
SNMPWALK snmpfs.c
readmib.c
rtutils.c
mibrt
snmpwlk.c
snmpfsc
readmibc
rtutilsc
mibrt
snmpwlkc
C source code for packet encoding
and decoding
C source code for parsing MIB
compiler output file
MIB compiler output file
C source code for main control
block
SNMPTRAP snmptrp.c snmptrpc C source code for main control
block
SNMPMON snmpmon.c snmpmonc C source code for main control
block
SNMPHOST snmpfs.c
snmphos.c
snmpfsc
snmphosc
C source code for packet encoding
and decoding
C source code for main control
block