SNMP Manager Programmer's Guide
Constructing and Interpreting Packets
SNMP Manager Programmer’s Guide–134249
5-3
Request and Response Packets
Table 5-2. Assigning Request and Response Packet Values
Packet 
Field
Assigned 
Value By Value Description
SNMP_PKT_T 
Field
PDU type SNMP_Create
_Request()
Manager 
Services
You use one of the following defines to 
set the PDU type to the indicated integer 
when you construct a request packet:
 GET_REQUEST_PDU (0)
 GET_NEXT_REQUEST_PDU (1)
 SET_REQUEST_PDU (3)
Response PDUs contain a PDU type of 
GET_RESPONSE_PDU (2).
pdu_type
request-id SNMP_Create
_Request()
You use a signed 32-bit integer to assign a 
request ID.
pdu.std_pdu.
request_id
error-status Manager 
Services
SNMP agent 
or subagent
In request packets, the value of error-
status is 0. 
Response packets contain one of the 
following integers, which correspond to 
the indicated defines:
 0 (NO_ERROR) 
 1 (TOO_BIG)   
 2 (NO_SUCH_NAME)
 3 (BAD_VALU)
 4 (READ_ONLY)
 5 (GEN_ERR) 
 6 (NO_ACCESS)
 7 (WRONG_TYPE)
 8 (WRONG_LENGTH)
 9 (WRONG_ENCODING)
 10 (WRONG_VALUE)
 11 (NO_CREATION)
 12 (INCONSISTENT_VALUE)
 13 (RESOURCE_UNAVAILABLE)
 14 (COMMIT_FAILED)
 15 (UNDO_FAILED)
 16 (AUTHORIZATION_ERROR)
 17 (NOT_WRITABLE)
 18 (INCONSISTENT_NAME)
 19 (LAST_ERROR)
pdu.std_pdu.
error_status
error-index Manager 
Services
SNMP agent 
or subagent
In request packets, the value of error-
index is 0.
When the error-status is not NO_ERROR, 
this signed integer indicates which 
variable in a list of variable bindings 
caused the exception. 
pdu.std_pdu.
error_index










