This is a limitation in the execute / pass / pass_persist infrastructure:
the truncation happens when creating the output to send to the script.
 setPass() sets up the command string and the arguments into
passthru->command, which is a statically allocated buffer. setPassPersist()
has the same problem.

netsnmp_internal_pass_set_format() formats into an SNMP_MAXBUF-sized string
(4k) but then passthru->command is 1k, and the 1k there fits the truncation
that Nam is seeing.

  Bill


On Fri, Dec 13, 2013 at 12:52 AM, Niels Baggesen
<n...@users.sourceforge.net>wrote:

> On Thu, Dec 05, 2013 at 06:04:22PM +0800, namgmail wrote:
> > Hi Niels,
> >
> > This is my full command:
> >
> > Sender:
> >              update="a1 a1 a2 a3 ...a400 "  #long string count from
> > a1 to a400
> >               snmpset -v1 -c private 192.168.4.113 *.1.3.6.1.4.1.5*
> > *s*  "${update}"
>
> I would like to see exactly what your "update" string looks like!
>
> Also, please run snmpset with the -d option to dump the packets that are
> sent and received, so we know if this is a snmpset or a snmpd problem.
>
> /Niels
>
> --
> Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
> The purpose of computing is insight, not numbers   ---   R W Hamming
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to