Re: [tkined] String length

From: Juergen Schoenwaelder (
Date: Thu Aug 31 2000 - 09:39:58 MET DST

>>>>> Homer Wilson Smith writes:

Homer> Is there any theoretical string length to the snmp get
Homer> command? For example I might want to get ifInOctets.1 through
Homer> 14 all in one line rather than issue 14 separate calls.

There is an internal buffer size restriction. You should not build
packets bigger than 2k. There is also another restriction imposed by
the agent and the network. The sad thing is that it is hard to
negotiate these size restrictions and thus you are usually only
guaranteed to be safe if you use SNMP packets smaller than 484 bytes
(or something in the order to 14xx bytes).

Anyway, getting 14 ifInOctets instances in one request should be no
problem at all. If you can use SNMPv2c, then you get just try an snmp
getbulk operation with max-repetitions set to 14 or so. If you only
have 14 interfaces and you want to retrieve data from all of them,
then you can do an snmp walk ifInOctets (which makes scotty use
getnexts or getbulks depending on which SNMP version your session


Juergen Schoenwaelder      Technical University Braunschweig
<>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <URL:>

-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <>. !! See for more information.

This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:53 MET