Dear forum,
I have implemented a functioning SNMPv3 manager using SNMP4J.
One thing that I was not able to achieve though is extracting the exact error cause from the SNMP4J mechanisms/objects. When providing a wrong security name / password / protocol (auth or priv), I always retrieve “java.util.concurrent.TimeoutException: SNMP Request timed out”. Error codes of the SnmpCompletableFuture, ResponseEvent or PDU objects are either 0 or null.
Using e.g. NET-SNMP, I receive detailed error responses, e.g. “Unsupported security level (Sub-id not found)”, “authorizationError (access denied to that object)” or “Authentication failure (incorrect password, community or key)”.
Is it possible to obtain more details on the specific error cause, either directly or at least by some workaround/further digging?
Hope this post is relevant for others as well. Thank you in advance!
Sebastian