When a token is put in a conf file that does not expect it, you have to
prefix it with the tag of the file it is supported by.
(Not sure I worded that correctly)

But try:
[snmp] clientaddr 10.10.163.10



On Tue, May 26, 2020 at 5:41 PM Ganesh Lakshmanan <lganesh1...@gmail.com>
wrote:

>
> Hello All,
>
> I created a snmp conf file (net-snmp 5.8) with:
> syslocation Santa Clara, California, 95050, US
> sysservices 76
> includeFile snmpd.system.conf
> rocommunity yogurtland
> trapcommunity public
> trapsink 10.0.130.1 trapped
> clientaddr 10.10.163.10
> engineID 001BBC09B247
>
> The purpose is to set snmp trap with Src IP of 10.10.163.10 so that the
> trap source is always fixed instead of trap agent picking up a random
> available IP. But even with this config,
>
> May 26 22:34:12 2020 snmpd[24738]: registered debug token read_config, 1
> May 26 22:34:12 2020 snmpd[24738]: /etc/abc.conf: line 8: Warning: Unknown
> token: clientaddr.
>
> Thank you so much,
> Ganesh
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to