Hi All,
Hi everyone,
I would like to bring to your attention a problem encountered during the verification of a GET operation in version 3.
In particular, using the snmp4j-3.1.0 library I always get the “org.snmp4j.MessageException: Message processing model 3 returned error: Unsupported security level” error. the same GET, with the snmp4j-2.7.0 version works correctly. to follow the commands given.
With 3.1.0: (KO)
/usr/java/jdk-11.0.3/bin/java -jar snmp4j-3.1.0.jar get -v 3 -y AES128 -u user1 -a MD5 -A password -Y password -d DEBUG -rsl secure udp: 192.168.1.42/161 1.3.6.1.2.1.1.1.0
–error
2019-06-13 10: 47: 47.344 DefaultUDPTransportMapping_0.0.0.0 / 49981 DEBUG Context engine ID of scoped PDU is empty! Setting it to authoritative engine ID: 80: 00: 1f: 88: 80: fd: 78: 55: 52: 0d: e0: ec: 5c: 00: 00: 00: 00
2019-06-13 10: 47: 47.432 DefaultUDPTransportMapping_0.0.0.0 / 49981 DEBUG getUser (engineID = 80: 00: 1f: 88: 80: fd: 78: 55: 52: 0d: e0: ec: 5c: 00: 00:00:00, securityName = user1)
2019-06-13 10: 47: 47.465 DefaultUDPTransportMapping_0.0.0.0 / 49981 DEBUG Adding user user1 = UsmUser [secName = user1, authProtocol = 1.3.6.1.6.3.10.1.1.2, authPassphrase = null, privProtocol = 1.3.6.1. 6.3.10.1.2.4, PrivPassPhrase = null, localizationEngineID = 80: 00: 1f: 88: 80: fd: 78: 55: 52: 0d: e0: ec: 5c: 00: 00: 00: 00]
org.snmp4j.MessageException: Message processing model 3 returned error: Unsupported security level
…
With 2.7.0: (OK)
/usr/java/jdk-11.0.3/bin/java -cp “*” org.snmp4j.tools.console.SnmpRequest -a MD5 -A password -x AES128 -X password -u user1 -v 3 -p GET udp : 192.168.1.42/161 1.3.6.1.2.1.1.1.0
Thanks for your help