5
eSNMP API Routines
This chapter provides reference information about the following types of
application programming interface (API) routines in the eSNMP developer’s kit:
•
Interface routines (Section 5.1)
•
Method routines (Section 5.2)
•
Support routines (Section 5.3)
5.1 Interface Routines
The interface routines are for developers writing the portion of the application
programming interface (API) that handles the connection between the agent and
the subagent. The interface routines are listed Table 5–1 and described in the
following pages.
Table 5–1 Interface Routines
Routine
Function
esnmp_init
Initializes the subagent and initiates communication with
the master agent.
esnmp_register
Requests local registration of a MIB subtree.
esnmp_unregister
Cancels local registration of a MIB subtree.
esnmp_register2
Requests cluster registration of a MIB subtree.
esnmp_unregister2
Cancels cluster registration of a MIB subtree.
esnmp_capabilities
Adds a subagent’s capabilities to the master agent’s
sysORTable
.
esnmp_uncapabilities
Removes a subagent’s capabilities from the master agent’s
sysORTable
.
esnmp_poll
Processes a pending request from the master agent.
esnmp_are_you_there
Requests a report from the master agent to indicate it is up
and running.
esnmp_trap
Sends a trap message to the master agent.
esnmp_term
Sends a close message to the master agent.
esnmp_sysuptime
Converts UNIX system time into a value with the same
time base as
sysUpTime
.
eSNMP API Routines 5–1