Interpreting Error Messages
This section lists and explains certain common error status values that can appear in SNMP messages. Within the PDU, the third field can include an error-status integer that refers to a specific problem. The integer zero (0) means that no errors were detected. When the error field is anything other than 0, the next field includes an error-index value that identifies the variable, or object, in the variable-bindings list that caused the error.
The following table lists the error status codes and their meanings.
|
|
|
|
|
|
Error status code
|
Meaning
|
Error status code
|
Meaning
|
0
|
noError
|
10
|
wrongValue
|
1
|
tooBig
|
11
|
noCreation
|
2
|
NoSuchName
|
12
|
inconsistentValue
|
3
|
BadValue
|
13
|
resourceUnavailable
|
4
|
ReadOnly
|
14
|
commitFailed
|
5
|
genError
|
15
|
undoFailed
|
6
|
noAccess
|
16
|
authorizationError
|
7
|
wrongType
|
17
|
notWritable
|
8
|
wrongLength
|
18
|
inconsistentName
|
9
|
wrongEncoding
|
|
|
|
Note - You might not see the codes. The SNMP manager or utility interprets the codes and displays and logs the appropriate message.
|
The subsequent, or fourth field, contains the error index when the error-status field is nonzero, that is, when the error-status field returns a value other than zero, which indicates that an error occurred. The error-index value identifies the variable, or object, in the variable-bindings list that caused the error. The first variable in the list has index 1, the second has index 2, and so on.
The next, or fifth field, is the variable-bindings field. It consists of a sequence of pairs; the first is the identifier. The second element is one of these options: value , unSpecified , noSuchOjbect , noSuchInstance , or EndofMibView . The following table describes each element.
Variable-bindings element
|
Description
|
value
|
Value that is associated with each object instance; specified in a PDU request.
|
unSpecified
|
A NULL value is used in retrieval requests.
|
noSuchObject
|
Indicates that the agent does not implement the object referred to by this object identifier.
|
noSuchInstance
|
Indicates that this object does not exist for this operation.
|
endOfMIBView
|
Indicates an attempt to reference an object identifier that is beyond the end of the MIB at the agent.
|
|
|