Setting msgMaxSize in SNMPv3

The msgMaxSize value can be set when using SNMPv3.

Date Entered: 02/21/2014    Last Updated: 03/31/2017

SNMPv3 messages contain a msgMaxSize field that specified the maximum supported message size (in bytes). This field's value is usually set automatically by the component, but you may also specify the value directly by using the MsgMaxSize configuration option. For instance, the following code snippet sets the maximum supported message size to 4096 bytes:

snmpmgr.Config("MsgMaxSize=4096"); snmpmgr.SendGetNextRequest();

The MsgMaxSize configuration option is present in the following components:

  • SNMPAgent
  • SNMPTCPAgent
  • SNMPMgr
  • SNMPTCPMgr

We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.