SNMP Manager Programmer's Guide
Introduction to Manager Services
SNMP Manager Programmer’s Guide–134249
1-17
Building the Executable Manager
Refer to Section 2, Programming Examples, for a description of the sample managers 
that illustrate these components.
Building the Executable Manager
Figure 1-12 summarizes the steps, Manager Services components, and programming 
tools used to build executable managers: 
The Guardian and OSS environments support several scenarios for building your 
manager:
•
Guardian tools can be executed from either the Guardian or the OSS environment to 
create a manager executable in the Guardian environment.
•
The c89 utility can be executed from either environment to create a manager that is 
executable in the OSS environment.
Section 8, Building Executable Managers
, describes the build scripts provided with 
Manager Services for use with the sample manager files.
Decoding 
packet
When your manager receives a response or trap packet, you 
decode it using the library function 
SNMP_Decode_Packet_WER(), described in Section 6.
Deallocating 
space
When memory allocated for holding packets is no longer needed, 
you use several library functions to deallocate it. To deallocate a 
packet structure, use SNMP_Free(), described in Section 5. To 
deallocate an encoded-packet buffer, use EBuffer_Clean(), as 
described in Section 6.
Interpreting 
packet
After a packet has been decoded, you parse it for information to 
return to the user, such as MIB object values and any SNMP 
errors encountered.  Section 6 contains information useful when 
parsing packets.
MIB object 
handling
You resolve extracted information into representations 
appropriate for the user.
User interface 
logic
You format responses and notifications and present them to the 
user.
Compilation The manager source code file, which contains directives to 
include the required library header files, is compiled.
Binding/Linking The Manager Services library, SNMPLIB, is bound or linked to 
the manager object code.
Optimization The executable manager file can optionally be optimized to 
enhance CPU performance.










