FANDOM


Background: Know: SNMP PDU, SEQUENCE, INTEGER Recognize:

Anticipates: get-bulk-request, trap

Up
Previous Next

Down

request-id


error-status error-index


Standard PDU headerEdit

Description of PDU fieldsEdit

SNMPmessage

Description of message PDU fields












image source




SNMP PDU HEADER:

IP headerUDP headerVersionCommunityPDU-typerequest-iderror-statuserror-indexvariable bindings


SPECIFIC EXPLANATIONS OF EACH PART
Edit

Field Name

Description

PDU type

An integer value indicates the PDU type

request-id

A number used to match requests with replies. It is generated by the device that sends a request and copied into this field in a Response-PDU by the responding SNMP entity.


INTEGER{-214783648..214783647}

error-status

An integer value that is used in a Response-PDU to tell the requesting SNMP entity the result of its request. A value of zero indicates that no error occurred; the other values indicate what sort of error happened




INTEGER{noError(0), tooBig(1),...} Full list on slide{1Q}

error-index

When Error Status is non-zero, this field contains a pointer that specifies which object generated the error. Always zero in a request.

INTEGER{0..max-bindings)

variable-bindings

Pairs of variable identifiers(OID) and value. Both are encoded using BER



The MIB source

 <br> 

    <font class="Apple-style-span" size="3"> PDU ::= SEQUENCE {</font><br>   <br>     <font class="Apple-style-span" size="3">         request-id INTEGER (-214783648..214783647),</font><br>     <br>     <font class="Apple-style-span" size="3">         error-status                -- sometimes ignored</font><br>     <font class="Apple-style-span" size="3">             INTEGER {</font><br>     <font class="Apple-style-span" size="3">                 noError(0),</font><br>     <font class="Apple-style-span" size="3">                 tooBig(1),</font><br>     <font class="Apple-style-span" size="3">                 noSuchName(2),      -- for proxy compatibility</font><br>     <font class="Apple-style-span" size="3">                 badValue(3),        -- for proxy compatibility</font><br>     <font class="Apple-style-span" size="3">                 readOnly(4),        -- for proxy compatibility</font><br>     <font class="Apple-style-span" size="3">                 genErr(5),</font><br>     <font class="Apple-style-span" size="3">                 noAccess(6),</font><br>     <font class="Apple-style-span" size="3">                 wrongType(7),</font><br>     <font class="Apple-style-span" size="3">                 wrongLength(8),</font><br>     <font class="Apple-style-span" size="3">                 wrongEncoding(9),</font><br>     <font class="Apple-style-span" size="3">                 wrongValue(10),</font><br>     <font class="Apple-style-span" size="3">                 noCreation(11),</font><br>     <font class="Apple-style-span" size="3">                 inconsistentValue(12),</font><br>     <font class="Apple-style-span" size="3">                 resourceUnavailable(13),</font><br>     <font class="Apple-style-span" size="3">                 commitFailed(14),</font><br>     <font class="Apple-style-span" size="3">                 undoFailed(15),</font><br>     <font class="Apple-style-span" size="3">                 authorizationError(16),</font><br>     <font class="Apple-style-span" size="3">                 notWritable(17),</font><br>     <font class="Apple-style-span" size="3">                 inconsistentName(18)</font><br>     <font class="Apple-style-span" size="3">             },</font><br>     <br>     <font class="Apple-style-span" size="3">         error-index                 -- sometimes ignored</font><br>     <font class="Apple-style-span" size="3">             INTEGER (0..max-bindings),</font><br>     <br>     <font class="Apple-style-span" size="3">         variable-bindings           -- values are sometimes ignored</font><br>     <font class="Apple-style-span" size="3">             VarBindList</font><br>     <font class="Apple-style-span" size="3">     }</font><br>     <br>     <font class="Apple-style-span" size="3"> BulkPDU ::=                         -- must be identical in</font><br>     <font class="Apple-style-span" size="3">     SEQUENCE {                      -- structure to PDU</font><br>     <font class="Apple-style-span" size="3">         request-id      INTEGER (-214783648..214783647),</font><br>     <font class="Apple-style-span" size="3">         non-repeaters   INTEGER (0..max-bindings),</font><br> 

    <font class="Apple-style-span" size="3">         max-repetitions INTEGER (0..max-bindings),</font><br>     <br>     <font class="Apple-style-span" size="3">         variable-bindings           -- values are ignored</font><br>     <font class="Apple-style-span" size="3">             VarBindList</font><br>     <font class="Apple-style-span" size="3">     }</font><br>     


If you want to look the detail about SNMPv2-PDU, click this link:

http://www.mibsearch.com/vendors/RFC/mibview/SNMPv2-PDU



See alsoEdit

Corresponding TELE9752 lecture slide

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.