[AGENT++] MAX_SNMP_PACKET?
Dan
message.board.buffer+agentpp_mailing_list at gmail.com
Mon Nov 20 00:02:47 CET 2006
Thanks for the response.
I noticed that with SNMPv3 the manager sets what the max response can be,
but I'm using SNMPv2c, which I don't believe has that feature. However,
even if I was using SNMPv3, my manager is set to have a max response size of
64k (max UDP size - I set it super-high to make sure that wasn't the
problem).
After a long chase through the source code of agent++ and snmp++, and adding
a bunch of LOGs to help debug what was going on, I finally got it working.
I think the problem was that snmpmsg.cpp was not being recompiled with my
make -f Makefile.linux from within snmp++/src. After adding some LOGs to
that file, it forced it to get recompiled and then it started working
right. Now I do a make clean -f Makefile.linux whenever changing a define!
-Dan
On 11/19/06, Jochen Katz <katz at agentpp.com> wrote:
>
> Hi Dan,
>
> > How can one increase the maximum allowed size of packets that can be
> sent
> > from agent++? I found that config_snmp_pp.h has MAX_SNMP_PACKET defined
> at
> > 4096 - I tried modifying that and recompiling to no avail. My big 10k
> snmp
> > response still doesn't get sent. I believe it's getting rejected as too
> > big
> > somewhere in the Snmpx send method, but I can't find where. Help?
>
> with snmp++v3.2 only MAX_SNMP_PACKET has to be changed and after a
> complete rebuild the new limit will be active.
>
> What manager and SNMP version do you use: For SNMPv3 requests, the
> manager can/has to set the max-size-response-pdu value.
>
> Regards,
> Jochen
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
>
More information about the AGENTPP
mailing list