The TCP/IP Guide - Version 3.0 (Contents) ` 1248 _ © 2001-2005 Charles M. Kozierok. All Rights Reserved.
The GetBulkRequest-PDU is designed to allow both regular variable and tables to be
retrieved in a single request. The PDU includes a list of objects, just as in a GetRequest-
PDU or GetNextRequest-PDU. The list is organized so that regular objects appear first and
table objects come afterwards. Two special parameters are included in the request, called
Non Repeaters and Max Repetitions. The first of these specifies the number of non-
repeating, regular objects to be retrieved; this is the number of regular objects at the start of
the object list. The second specifies the number of iterations, or entries, to read for the
remaining tabular objects.
For example, suppose an SNMP manager wanted to request 4 regular variables and 3
entries from a table. The GetNextRequest-PDU would contain five MIB object specifica-
tions, with the table last. The Non Repeaters field would be set to 4, and the Max
Repetitions field set to 3.
The original method of traversing tables using GetRequest-PDU and GetNextRequest-PDU
from SNMPv1 was retained in SNMPv2 and SNMPv3 when they were developed. However,
the introduction of the more efficient GetBulkRequest-PDU means that GetNextRequest-
PDU is not as important as it was in SNMPv1. Bear in mind, however, that using
GetBulkRequest-PDU does require that the requesting entity know how many entries to ask
for. So, some “trial and error” or multiple requests may be required to get a whole table if the
number of entries is not known.
Key Concept: To improve the efficiency of table traversal, SNMPv2 introduced the
GetBulkRequest-PDU message, which allows a network management station to
request a sequence of MIB objects from a table using a single request to a managed
node.
SNMP Protocol Object Modification Using SetRequest Messages
The GetRequest-PDU, GetNextRequest-PDU, and GetBulkRequest-PDU messages are
the three members of the SNMP “Read” class of PDUs—they are used to let an SNMP
manager read MIB objects from an MIB agent. The opposite function is represented by the
SNMP “Write” class, which contains a single member: the SNMP SetRequest-PDU
message.
The use of this PDU is fairly obvious; where one of the three Get PDUs specifies a variable
whose value is to be retrieved, the SetRequest-PDU message contains a specification for
variables whose values are to be modified by the network administrator. Remember that
SNMP does not include specific commands to let a network administrator control a
managed device. This is in fact the “control method”, by setting variables that affect the
operation of the managed device.
The set process is the complement of the get process; the same basic idea, pretty much,
but a reversal in how the object values “travel” and what is done with them. The process
follows these steps (see Figure 275):