Re: Problem with SNMPv3 traps with authentication

Frank Fock <[email protected]> Wed, 31 Mar 2021 00:15:25 +0200
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Michael,

I guess you need to check your SNMPv3 engine ID configuration (i.e. use unique SNMPv3 engine IDs for all SNMPv3 entities) when you test using SNMP4J only.
In addition, when using the NET-SNMP snmptrap or any other notification sender with the SNMP4J trap listener or any other notification receiver, you need to add the USM auth(No)Priv user with the engine ID of the snmptrap entity to the USM of the SNMP4J notification receiver.

This is required, because for SNMPv3 traps/notifications, the notification sender is authoritative.

Hope this helps.

Best regards,
Frank


> On 30. Mar 2021, at 11:03, Michał Tarczyński <[email protected]> wrote:
> 
> Hello,
> 
> I have a problem with receiving SNMPv3 authPriv traps on my own Java trap receiver.
> When using snmptrap command on the Linux terminal with authPriv option then the trap is never received on my Java trap receiver regardless of which authentication is used: MD5, SHA or SHA-256. Only if there is noAuthNoPriv used then the trap is received.
> In my Java trap receiver the snmp4j library is used. An important note is that my Java traps receiver receives authPriv trap,regardless of which authentication is used, only when the trap is sent from my own Java trap sender with snmp4j (for all authentication protocol). Also snmptrapd daemon receives authPriv trap which are sent from own Java application with snmp4j.
> 
> I’m using Net-SNMP 5.9 on Linux Mint and „snmp4j-2.7.0”.
> 
> Could someone help me in receiving the authPriv traps on Java application with snmp4j?
> 
> Best regards,
> Michael
> 
> _______________________________________________
> Net-snmp-users mailing list
> [email protected] <mailto:[email protected]>
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users <https://lists.sourceforge.net/lists/listinfo/net-snmp-users>

_______________________________________________
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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEblnlKo3zx5yDEpuW0fM8akNZfzwFAmBjov0ACgkQ0fM8akNZ
fzwLSxAAs3PR0pxaoRwYuODZ9p7pTyZu5Jl/juLvNhLpvoLkH6dKWKZrBL8orXh2
mY1w5y0WqtZora/BuhYfz23SrholRhylg8FxjdCAlS8rnmMMcLl5EAznNU7gRXPW
y/Zd8pKaXaR8V0nhmzb1miJdanvXRj/1S3KhriTXoQAaMIK7iL1QXQXEE4Zms7dQ
B3W/8Cn4an9xssXOh+iXwR5wn764io1aYnbq7TIcpfIxtg/lUcMqOGKR1myXWToC
UllyEPZiImhNJVy2KIr5Wn5cD0MTqDyVLqX+oSX+C5dY2X4waF6UnNIl7u3gejvI
jBoVgSk2zb6gvEKmHzxc17KJbQmZtk/1UQ+kV5VBZLjEEZJQr3w8wkIBXbWWZTEP
yluLy87UeYuGrP18CK3r4nNckuh0kyD+x+HzoJUYsLnpqShRctsiM3IIBvGQCvB2
lmER4iKIcQQ2hXIoNXkoEN3YKgUHa60ozTZL5lujYIAzYU/o3ZYLQXfm/rEpFumP
NaQ55troKeciShn61w0FlOMp97ZR9hu/Wh+sDOCmO0NGb1+o+z/XG1ayMKvxGPlq
JZCAnP6lQex6muiUwwXkBQIMcsJ7rbD7pKqmUh5kYaz99dI9r74wzujMsc2EPq1G
C6gtMFpeHVSeH3dxcCZFPUK4wDkNL/c2Z045JKU+6OBmOxn7aIo=
=1spf
-----END PGP SIGNATURE-----