[SNMP4J] Question of order
Frank Fock
fock at agentpp.com
Tue Jan 18 23:55:32 CET 2011
Hi,
The OID order is not defined. Thus, the answer is (b).
You can even put the same OID twice in a PDU.
Best regards,
Frank
On 18.01.2011 10:09, Tal Gendler wrote:
> I know that, when forming a request the order which you put the OIDs in the Request will be the order in the Response.
> Example :
> Request PDU : (OID1, OID2,OID3)
> Response PDU : (OID1=value, OID2=value, OID3=value) it can't be (OID3=value, OID1=value, OID2=value).
>
> My question:
> Is the order of the OIDs in the request must be the same order as defined in the MIB ?
> Example :
> We have this MIB :
> dot1dStpBridgeHelloTime OBJECT-TYPE
> SYNTAX Timeout (100..1000)
> ACCESS read-write
> STATUS mandatory
> DESCRIPTION
> "The value that all bridges use for HelloTime when
> this bridge is acting as the root. The
> granularity of this timer is specified by
> 802.1d/D9 to be 1 second. An agent may return a
> badValue error if a set is attempted to a value
> which is not a whole number of seconds."
> REFERENCE
> "P802.1d/D9, July 14, 1989: Section 4.5.3.9"
> ::= { dot1dStp 13 }
>
> Do I have to create the request in this order ? :
> a) Request PDU: (OIDofSYNTAX, OIDofACCESS, OIDofSTATUS)
> Or it can be in any order I choose and let the agent work a little harder ?:
> b) Request PDU: (OIDofSTATUS, OIDofSYNTAX, OIDofACCESS)
>
> Is it a or b ?
> If the order is important can you please send me a link to RFC defining this ?
>
> Thanks,
> Tal
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list