On Thu, Jun 24, 2010 at 6:12 AM, Dave Shield <d.t.shi...@liverpool.ac.uk> wrote: > On 23 June 2010 16:15, Leonardo Chiquitto <leonardo.li...@gmail.com> wrote: >> I just realized that v1 traps generated by "snmptrap" do not respect the >> address set in "v1trapaddress". I understand this is expected because >> the configuration option is exclusive to the agent (ie, set in snmpd.conf). >> >> Is this something worth fixing? > > No. > > The address used within a v1 trap is provided on the command line > (as the second positional parameter).
Dave, thanks for your reply. I completely missed that the v1trapaddress can be specified in the command line (probably because the help text mentions "AGENT" twice, but in different positions). Anyway, this works as expected now. > If you need to set this via a config file directive, then try using > 'clientaddr', which should have the same effect. 'clientaddr' seems to control only the source address in the UDP packet header. The address inside the v1 trap payload is not being set according to this configuration parameter, but this is also expected. Thanks again, Leonardo ------------------------------------------------------------------------------ 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-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders