On Thu, 4 Mar 2010 10:05:57 -0500
Robert Story <rst...@freesnmp.com> wrote:

> On Wed, 3 Mar 2010 22:30:40 -0800 Stephen wrote:
> SH> > I see the patch. It allows clientaddr to be in snmpd.conf without the 
> [snmp]
> SH> > prefix. But clientaddr is a snmp token, and does work in snmpd.conf when
> SH> > properly prefixed.
> SH> 
> SH> Have you tried putting address (source address) in snmp.conf and
> SH> generating a trap. It didn't work with 5.4.2.1.
> 
> Yep. Works fine for me. Are you sure snmpd is reading the config file you
> think it is?
> 
> # snmpd -f -Lo -Dread_config -d -m '' --rocommunity=public
> --trapsink=192.168.1.3 udp:1161 | egrep "^(read_config: Reading|read_config: 
> Found|0|S|N)"
> 
> read_config: Reading configuration /etc/snmp/snmpd.conf
> [...]
> read_config: Reading configuration /root/.snmp/snmp.conf
> read_config: Found a parser.  Calling it: clientaddr / 192.168.56.1
> read_config: Found a parser.  Calling it: rocommunity / public
> read_config: Found a parser.  Calling it: trapsink / 192.168.1.3
> 
> Sending 44 bytes to UDP: [192.168.1.3]:162->[192.168.56.1]
> 0000: 30 2A 02 01  00 04 06 70  75 62 6C 69  63 A4 1D 06    0*.....public...
> 0016: 0A 2B 06 01  04 01 BF 08  03 02 0A 40  04 C0 A8 01    .+.........@....
> 0032: 11 02 01 00  02 01 00 43  01 2E 30 00                 .......C..0.
> 
> NET-SNMP version 5.4.2.1

Looking at the code, 5.4.2.1 was broken, but it was already
fixed in 5.5


-- 

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to