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 
> <michal.tarczyn...@radmor.com.pl> 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
> Net-snmp-users@lists.sourceforge.net 
> <mailto: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 
> <https://lists.sourceforge.net/lists/listinfo/net-snmp-users>

Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
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