SNMP Manager Programmer's Guide
Contents
SNMP Manager Programmer’s Guide–134249
vi
2. Programming Examples (continued)
2. Programming Examples (continued)
Overview of Source Code Structure 2-5
Managers Supporting UDP Only
2-5
Managers Supporting UDP and IPC
2-6
Common Utility Functions
2-34
Guardian and OSS Differences
2-40
SNMPGT
2-42
SNMPGET
2-55
SNMPNEXT
2-65
SNMPSET
2-68
SNMPWALK
2-82
SNMPTRAP
2-94
SNMPMON
2-108
SNMPHOST
2-114
SNMPHOST Header File
2-119
SNMPHOST Source Code
2-122
3. Using the MIB Compiler
4. Using Header Files, Data Structures, and Defines
Header Files 4-1
Typedefs
4-1
Packet-Handling Structures
4-2
OID Structure (OBJ_ID_T)
4-2
Encoded-Packet Structure (EBUFFER_T)
4-3
Unencoded-Packet Structure (SNMP_PKT_T)
4-4
Decoding Statistics Structure (SNMP_STATS_T)
4-8
Defines
4-10
5. Constructing and Interpreting Packets
Packet Attributes 5-1
Request and Response Packets
5-2
Trap Packets
5-4
Variable Bindings
5-5
Instance Identifiers
5-5
Lexicographic Ordering
5-7
Associating Variable Bindings With Packets
5-8
Interpreting Received Packets
5-10