SNMP Manager Programmer's Guide
Reference Summary
SNMP Manager Programmer’s Guide–134249
9-4
Common Utility Functions
Common Utility Functions
Summary of Common Utility Functions
All asn1.h
buffer.h
buildpkt.h
localio.h
objectid.h
snmp.h
snmpdefs.h
snmpstat.h
systype.h
print.h
asn1h
bufferh
buildpkh
localioh
objectih
snmph
snmpdefh
snmpstah
systypeh
printh
Declarations and prototypes for Manager
Services library packet-handling functions
Type definitions for Guardian and OSS
environments
Declarations and prototypes for common
utility functions
Function
Header
File Description of Function
Sample
Managers Using
Function
hexcheck() print.h Determines the number of bytes in a
value encoded in ASCII or
hexadecimal format.
SNMPSET
SNMPTRAP
oid_to_namerec() print.h Maps a pointer to a structure
describing a MIB-II OID to a pointer
to an array containing the object’s
name and type.
SNMPSET
SNMPTRAP
oidstr_to_oid() print.h Converts an OID string into the
structure used by Manager Services
to represent OIDs. The OID string
can be a MIB-II object name or an
OID expressed in dotted notation.
All except
SNMPHOST and
SNMPMON
print_pkt() print.h Prints the contents of an unencoded
SNMP packet.
All
read_mib() readmib.h Reads a file created with the
-readtree option of the MIB compiler
and converts it into an in-memory
structure that string2oid() can parse.
SNMPWALK
Sample Manager
C File
Names
System File
Names File Descriptions