Re: How to specify the source address for sending traps

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 7/26/19 1:06 PM, David Moriconi
(dmoricon) via Net-snmp-users wrote:

Hi,

I am using
Net-SNMP 5.8 on CentOS 7 with AgentX enabled. My AgentX
subagent is implemented using SNMP4J-AgentX.

I want to
tell Net-SNMP on which interface to send traps. I look at
the SNMPD configuration manpage ( http://www.net-snmp.org/docs/man/snmpd.conf.html )
and don’t see anything like it. The trap2sink directive only
takes the target host as argument along with a community and
port. From what I can see, trapsess also only takes the
target address and not the source address.

Can someone
please let me know if this is possible? If so, how can I
achieve it?

Thank you

Hi David,

Please have a look at commit e56699f5e2ef ("Add the ability to
set the source address with "-s" for trapsess").

Bart.

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.