eSNMP API Routines
5.2 Method Routines
5.2 Method Routines
SNMP requests may contain many encoded MIB variables. The
libsnmp
code
executing in a subagent matches each
VariableBinding
with an object table
entry. The object table’s method routine is then called. Therefore, a method
routine is called to service a single MIB variable. Since a single method routine
can handle a number of MIB variables, the same method routine may be called
several times during a single SNMP request.
The method routine calling interface contains the following functions:
•
*_get
—respond to
Get
,
GetNext
, and
GetBulk
requests
•
*_set
—respond to
Set
requests
eSNMP API Routines 5–19