On Mon, 2005-05-02 at 12:51, Rustagi, Sandeep (Sandeep) wrote:

> I wish to know if I wish to construct a SNMP PDU with all OIDs in that PDU
> as Octet string, then how many OIDs I can give in a PDU.

It depends on the size of the OIDs, and the length of each string
value.  It may also depend on the vendor of the client and agent
(or the toolkits used to construct them).

> Also, what will be length of each OCTET STRING
> for each OID I can give.

That depends on the MIB objects they refer to.
Different MIB objects will be defined using different lengths.


> testString OBJECT-TYPE
>     SYNTAX OCTET STRING (SIZE (1..65535))
>     MAX-ACCESS read-write
>     STATUS current
>     DESCRIPTION
> "Test String"

That's the maximum possible size of a string, certainly.
But the SMI specifications state:

7.1.2.  OCTET STRING
                                                                                
   The OCTET STRING type represents arbitrary binary or textual
   data. Although the SMI-specified size limitation for this type
   is 65535 octets, MIB designers should realize that there may
   be implementation and interoperability limitations for sizes
   in excess of 255 octets.
                                                                              

> If this is the OID which I want to send in a PDU for snmpset then
> what will be the maximum string length I can give for this MIB.

64Kb - though you'll almost certainly run into problems with
a string value that long.

> Is SNMP_MAX_MSG_SIZE is for whole pdu or for a OID?

The whole PDU.

Dave



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to