[SNMP4J] Problem with SNMP V3 MD5/DES

Jackie Cheng jackie at perfigo.com
Tue Dec 7 01:36:26 CET 2004


Hi Frank,

Thanks for the promptly reply.

The command I gave is like "java SnmpRequest -x DES -X password -D DEBUG -p GETNEXT  -v 3 -a MD5 -A password -u jackie 192.168.151.55 1.3.6.1.2.1". Is it possible to have 2 instances of SNMPs in this case? (I run it in command line and one at once.)

I downladed it 2 weeks ago and the "change.txt" contains this line "[2004-10-13] Version 1.0.3a:". Therefore, I think I am using the latest version.

Thanks

--Jackie

-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com] 
Sent: Monday, December 06, 2004 3:43 PM
To: Jackie Cheng
Cc: snmp4j at agentpp.org
Subject: Re: [SNMP4J] Problem with SNMP V3 MD5/DES


Hi Jackie,

Are you using the latest SNMP4J version?
 From the log it seems that the time synchronization fails. This can be caused by two managers (Snmp instances) using the same engine ID.

Best regards,
Frank

Jackie Cheng wrote:

>Hi
>
>I could use SnmpRequest with SNMP V3+MD5 but I had problem to use it
>with SNMP V3+DES+MD5. Is there any one have experience with this? 
>Please help me and thank in advance. :-)
>
>Here is the debug log from SnmpRequest.
>
>0 [main] DEBUG org.snmp4j.security.Salt - Initialized Salt to
>67e7182e13848d4d. 61 [main] DEBUG org.snmp4j.security.USM - RFC3414 §3.1.4.b Outgoing message is not encrypted 61 [main] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping - Sending message to 192.168.151.55/161 with length 61: 30:3b:02:01:03:30:11:02:04:5e:a6:aa:a3:02:03:00:ff:ff:04:01:04:02:01:03:04:10:30:0e:04:00:02:01:00:02:01:00:04:00:04:00:04:00:30:11:04:00:04:00:a1:0b:02:01:00:02:01:00:02:01:00:30:00
>71 [main] DEBUG org.snmp4j.Snmp - New pending request with handle PduHandle[1597984435] 71 [Thread-2] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping - Received message from /192.168.151.55 with length 103: 30:65:02:01:03:30:10:02:04:5e:a6:aa:a3:02:02:05:dc:04:01:08:02:01:03:04:1e:30:1c:04:0c:80:00:00:09:03:00:00:11:20:a2:e7:01:02:01:02:02:03:03:e9:52:04:00:04:00:04:00:30:2e:04:0c:80:00:00:09:03:00:00:11:20:a2:e7:01:04:00:a8:1c:02:01:00:02:01:00:02:01:00:30:11:30:0f:06:0a:2b:06:01:06:03:0f:01:01:04:00:41:01:1c
>71 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - SNMPv3 header decoded: msgId=1587980963, msgMaxSize=1500, msgFlags=08, secModel=3 81 [Thread-2] DEBUG org.snmp4j.security.USM - Accepting zero length security name 91 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - RFC3412 §7.2.10 - Received PDU (msgID=1587980963) is a response or an internal class message. PduHandle.transactionID = 1597984435 101 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - MPv3 finished 101 [Thread-2] DEBUG org.snmp4j.Snmp - Searching pending request with handlePduHandle[1597984435] 101 [Thread-2] DEBUG org.snmp4j.Snmp - Send new request after report. 101 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - Context engine ID of scoped PDU is empty! Setting it to authoritative engine ID: 80:00:00:09:03:00:00:11:20:a2:e7:01
>101 [Thread-2] DEBUG org.snmp4j.security.USM - getUser(engineID=80:00:00:09:03:00:00:11:20:a2:e7:01, userName=jackie) 231 [Thread-2] DEBUG org.snmp4j.security.AuthGeneric - MD5First digest: 5c:0c:be:fc:eb:83:ea:78:f0:d4:88:22:f8:32:6c:fa
>231 [Thread-2] DEBUG org.snmp4j.security.AuthGeneric - MD5localized key: ed:93:57:08:36:b6:a2:6e:d4:02:25:95:b0:4e:71:7a
>321 [Thread-2] DEBUG org.snmp4j.security.AuthGeneric - MD5First digest: 5c:0c:be:fc:eb:83:ea:78:f0:d4:88:22:f8:32:6c:fa
>321 [Thread-2] DEBUG org.snmp4j.security.AuthGeneric - MD5localized key: ed:93:57:08:36:b6:a2:6e:d4:02:25:95:b0:4e:71:7a
>321 [Thread-2] DEBUG org.snmp4j.security.USM - RFC3414 §3.1.4.a Outgoing message needs to be encrypted 321 [Thread-2] DEBUG org.snmp4j.security.PrivDES - Preparing decrypt_params. 321 [Thread-2] DEBUG org.snmp4j.security.PrivDES - Preparing iv for encryption. 1072 [Thread-1] DEBUG org.snmp4j.security.USM - getUser(engineID=80:00:00:09:03:00:00:11:20:a2:e7:01, userName=jackie) 1072 [Thread-1] DEBUG org.snmp4j.security.USM - RFC3414 §3.1.4.a Outgoing message needs to be encrypted 1072 [Thread-1] DEBUG org.snmp4j.security.PrivDES - Preparing decrypt_params. 1072 [Thread-1] DEBUG org.snmp4j.security.PrivDES - Preparing iv for encryption. 1433 [Thread-2] DEBUG org.snmp4j.security.PrivDES - Using padding. 1433 [Thread-2] DEBUG org.snmp4j.security.PrivDES - Encryption finished. 1433 [Thread-1] DEBUG org.snmp4j.security.PrivDES - Using padding. 1433 [Thread-1] DEBUG org.snmp4j.security.PrivDES - Encryption finished. 1433 [Thread-1] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping - Sending message to 192.168.151.55/161 with length 131: 30:81:80:02:01:03:30:11:02:04:5e:a6:aa:a5:02:03:00:ff:ff:04:01:07:02:01:03:04:36:30:34:04:0c:80:00:00:09:03:00:00:11:20:a2:e7:01:02:01:00:02:01:01:04:06:6a:61:63:6b:69:65:04:0c:77:32:a5:68:e3:07:dd:8b:d1:8c:d8:f6:04:08:00:00:00:00:13:84:8d:4e:04:30:d3:f0:91:85:11:be:9e:74:22:2f:08:8d:1e:fd:a3:48:09:b0:5c:9b:8e:ce:6c:49:0a:64:11:33:b6:48:7b:6a:bc:af:59:20:2c:e4:d8:63:75:e4:38:b9:c3:9c:62:1f
>1433 [Thread-1] DEBUG org.snmp4j.Snmp - Running pending request with handle: PduHandle[1597984435] 1443 [Thread-2] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping - Sending message to 192.168.151.55/161 with length 131: 30:81:80:02:01:03:30:11:02:04:5e:a6:aa:a4:02:03:00:ff:ff:04:01:07:02:01:03:04:36:30:34:04:0c:80:00:00:09:03:00:00:11:20:a2:e7:01:02:01:00:02:01:01:04:06:6a:61:63:6b:69:65:04:0c:c4:34:4a:30:aa:75:ff:bd:1f:c0:96:2f:04:08:00:00:00:00:13:84:8d:4d:04:30:e1:f1:e6:5d:c7:b0:00:27:af:da:94:07:d9:c4:7c:01:ae:36:5e:52:a0:62:89:84:1b:04:73:dd:d9:0f:71:cb:3e:89:f7:86:34:c0:51:7a:6f:66:71:99:d8:a7:57:64
>1443 [Thread-2] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping - Received message from /192.168.151.55 with length 124: 30:7a:02:01:03:30:10:02:04:5e:a6:aa:a5:02:02:05:dc:04:01:09:02:01:03:04:30:30:2e:04:0c:80:00:00:09:03:00:00:11:20:a2:e7:01:02:01:02:02:03:03:e9:54:04:06:6a:61:63:6b:69:65:04:0c:7c:27:6b:b5:a8:af:0f:2c:66:99:30:28:04:00:30:31:04:0c:80:00:00:09:03:00:00:11:20:a2:e7:01:04:00:a8:1f:02:04:7f:ff:ff:ff:02:01:00:02:01:00:30:11:30:0f:06:0a:2b:06:01:06:03:0f:01:01:02:00:41:01:23
>1443 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - SNMPv3 header decoded: msgId=1587980965, msgMaxSize=1500, msgFlags=09, secModel=3 1443 [Thread-2] DEBUG org.snmp4j.security.USM - getUser(engineID=80:00:00:09:03:00:00:11:20:a2:e7:01, userName=jackie) 1443 [Thread-2] DEBUG org.snmp4j.security.UsmTimeTable - CheckTime: time ok (non authorative) 1443 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - RFC3412 §7.2.10 - Received PDU (msgID=1587980965) is a response or an internal class message. PduHandle.transactionID = 1597984435 1443 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - MPv3 finished 1443 [Thread-2] DEBUG org.snmp4j.Snmp - Searching pending request with handlePduHandle[1597984435] 1443 [Thread-2] DEBUG org.snmp4j.Snmp - Send new request after report. 1443 [Thread-2] DEBUG org.snmp4j.security.USM - getUser(engineID=80:00:00:09:03:00:00:11:20:a2:e7:01, userName=jackie) 1443 [Thread-2] DEBUG org.snmp4j.security.USM - RFC3414 §3.1.4.a Outgoing message needs to be encrypted 1443 [Thread-2] DEBUG org.snmp4j.security.PrivDES - Preparing decrypt_params. 1443 [Thread-2] DEBUG org.snmp4j.security.PrivDES - Preparing iv for encryption. 1443 [Thread-2] DEBUG org.snmp4j.security.PrivDES - Using padding. 1453 [Thread-2] DEBUG org.snmp4j.security.PrivDES - Encryption finished. 1453 [Thread-2] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping - Sending message to 192.168.151.55/161 with length 133: 30:81:82:02:01:03:30:11:02:04:5e:a6:aa:a6:02:03:00:ff:ff:04:01:07:02:01:03:04:38:30:36:04:0c:80:00:00:09:03:00:00:11:20:a2:e7:01:02:01:02:02:03:03:e9:54:04:06:6a:61:63:6b:69:65:04:0c:2e:eb:88:c8:7a:87:5d:9e:af:d0:6a:2c:04:08:00:00:00:02:13:84:8d:4f:04:30:65:5b:21:b2:80:08:d5:aa:d5:ff:ff:1f:42:59:ad:e5:cb:0a:11:8a:69:0e:45:ae:c0:91:30:81:61:f9:bc:5c:4d:fe:01:6b:96:90:b8:a6:95:42:da:64:75:ee:11:fc
>1453 [Thread-2] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping - Received message from /192.168.151.55 with length 124: 30:7a:02:01:03:30:10:02:04:5e:a6:aa:a4:02:02:05:dc:04:01:09:02:01:03:04:30:30:2e:04:0c:80:00:00:09:03:00:00:11:20:a2:e7:01:02:01:02:02:03:03:e9:54:04:06:6a:61:63:6b:69:65:04:0c:0d:6d:48:8e:3e:a7:48:40:f6:19:5d:93:04:00:30:31:04:0c:80:00:00:09:03:00:00:11:20:a2:e7:01:04:00:a8:1f:02:04:7f:ff:ff:ff:02:01:00:02:01:00:30:11:30:0f:06:0a:2b:06:01:06:03:0f:01:01:02:00:41:01:24
>1453 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - SNMPv3 header decoded: msgId=1587980964, msgMaxSize=1500, msgFlags=09, secModel=3 1453 [Thread-2] DEBUG org.snmp4j.security.USM - getUser(engineID=80:00:00:09:03:00:00:11:20:a2:e7:01, userName=jackie) 1453 [Thread-2] DEBUG org.snmp4j.security.UsmTimeTable - CheckTime: time ok (non authorative) 1453 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - RFC3412 §7.2.10 - Received PDU (msgID=1587980964) is a response or an internal class message. PduHandle.transactionID = 1597984435 1453 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - MPv3 finished 1453 [Thread-2] DEBUG org.snmp4j.Snmp - Searching pending request with handlePduHandle[1597984435] 1463 [Thread-2] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping - Received message from /192.168.151.55 with length 367: 30:82:01:6b:02:01:03:30:10:02:04:5e:a6:aa:a6:02:02:05:dc:04:01:03:02:01:03:04:38:30:36:04:0c:80:00:00:09:03:00:00:11:20:a2:e7:01:02:01:02:02:03:03:e9:54:04:06:6a:61:63:6b:69:65:04:0c:43:cb:db:46:d1:e1:44:bf:86:5d:2a:17:04:08:00:00:00:02:a0:44:90:80:04:82:01:18:fa:5c:f4:a2:c5:ed:da:64:08:a1:1c:c0:94:0c:78:87:02:c2:73:91:e2:30:40:5a:e5:d3:a7:2c:32:1c:ab:d3:2d:18:7c:3e:b5:d6:8b:db:49:71:8b:fd:d8:a5:60:90:41:1c:58:ff:95:4f:a9:42:cb:9b:7a:bb:0d:6b:92:e7:cc:59:99:b7:a9:53:91:6b:63:21:0d:ef:4b:25:ff:03:25:20:c6:be:ea:78:7a:bd:47:5d:4d:20:9a:a2:f2:cd:4c:a7:8b:7f:0f:ab:41:b7:b5:24:68:c2:f7:82:a0:c9:72:11:75:f8:7d:7e:2e:e9:f6:4e:26:e8:91:63:d0:a5:80:71:48:94:9b:45:bf:ab:fd:50:2d:dc:48:ad:fd:3d:50:3d:21:dd:f7:0f:ee:c5:e2:ac:2f:95:a7:02:bb:06:22:7c:1a:b5:49:97:66:c7:e4:0d:9f:28:aa:ff:10:13:6b:95:8d:75:e8:73:d8:9e:72:bb:89:ca:0d:86:7a:8d:b3:91:03:58:eb:ff:54:60:1c:18:d6:f3:af:37:79:3c:8e:4c:5d:46:93:ec:8a:bb:e5:07:24:49:de:ea:75:ac:b3:2c:d3:d3:7c:c6:16:ca:45:e9:77:3b:92:e2:48:4a:68:e3:2f:17:37:6c:8d:03:67:ed:ca:76:24:82:60:ff:af:f5:30:7e:65:a1:a5:84:e0:17:4d:28:9b:9b:66:3b:3f:b5:e1:29:1c:82:68:90
>1463 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - SNMPv3 header decoded: msgId=1587980966, msgMaxSize=1500, msgFlags=03, secModel=3 1463 [Thread-2] DEBUG org.snmp4j.security.USM - getUser(engineID=80:00:00:09:03:00:00:11:20:a2:e7:01, userName=jackie) 1463 [Thread-2] DEBUG org.snmp4j.security.UsmTimeTable - CheckTime: time ok (non authorative) 1473 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - RFC3412 §7.2.10 - Received PDU (msgID=1587980966) is a response or an internal class message. PduHandle.transactionID = 1597984435 1473 [Thread-2] DEBUG org.snmp4j.mp.MPv3 - MPv3 finished 1473 [Thread-2] DEBUG org.snmp4j.Snmp - Removing pending request with handle PduHandle[1597984435]
>REPORT: Message not within time window. Current counter value is 36.
>
>
>--Jackie
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://p15141779.pureserver.info/mailman/listinfo/snmp4j
>
>  
>






More information about the SNMP4J mailing list