Re: how to increase the MaxMsgSize to 5000
Malathi Panyam <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your response. Actually it turned out to be the perl SNMP issue. When we send the maxMsgSize as 5000, perl module SNMP.pm calculates the Maxrepetitions as 5000*0.017 = 85 But when the agent responds with the 85 objects with total size more than 5000 bytes, perl rejects with the message "The message size exceeded the buffer maxMsgSize of 5000". Either the agent should limit itself to 5000 bytes or the perl side should accept whatever size they receive as we dont know the size of the 85 objets before hand. Pl correct me if I miss anything here.. --- On Tue, 6/22/10, Wes Hardaker <[email protected]> wrote: From: Wes Hardaker <[email protected]> Subject: Re: how to increase the MaxMsgSize to 5000 To: "Malathi Panyam" <[email protected]> Cc: [email protected] Date: Tuesday, June 22, 2010, 7:58 AM >>>>> On Sun, 20 Jun 2010 08:56:46 -0700 (PDT), Malathi Panyam <[email protected]> said: MP> After digging through the agent code, I figured out that we set the SNMP_MAX_MSG_SIZE to 1472 in snmp_api.h. MP> Can we increase this size? is it advisable? The biggest problems with maximum messages sizes is that for UDP you begin to fragment the packets, which can cause problems in networks where any packet loss exists. If you have a very reliable network it's probably ok to increase the above size. -- Wes Hardaker Cobham Analytic Solutions ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ 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