Setting msgMaxSize in SNMPv3

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 article please contact our support team at kb@nsoftware.com.