[SNMP4J] Unknown Engine ID

karthik kwallaja at netechinc.co.in
Tue Mar 11 16:15:45 CET 2008



Hi All,


  I tried to do a SET for an OID using SNMPv2 and  SNMPv3. iam using local
ip run a Agent and NMS. When i try to set the OID value in "V2" mode , it is
setting, but when i try to send a "V3" mode its giving Unknown Engine ID
error.

   how to solve this ? i tried setting the Local Engine id value . still iam
getting the "Unknown Engine ID error".

   can anybody help me out?



Doing SNMPv2 set..
PORT IS 161
Inside init
Inside sendAndProcessResponse
Inside createSnmpSession
0 [main] DEBUG org.snmp4j.security.Salt  - Initialized Salt to
83032c7187ee64d2.
16 [DefaultUDPTransportMapping_172.20.29.79/0] INFO
org.snmp4j.transport.DefaultUdpTransportMapping  - UDP receive buffer size
for socket 172.20.29.79/0 is set to: 8192
16 [main] DEBUG org.snmp4j.Snmp  - Running pending sync request with handle
PduHandle[1466933496] and retry count left 1
16 [main] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping  - Sending
message to 127.0.0.1/161 with length 76:
30:4a:02:01:01:04:06:70:75:62:6c:69:63:a3:3d:02:04:57:6f:a0:f8:02:01:00:02:0
1:00:30:2f:30:2d:06:08:2b:06:01:02:01:01:06:00:04:21:53:65:6e:64:69:6e:67:20
:61:20:56:32:20:6f:69:64:20:76:61:6c:75:65:20:74:6f:20:62:65:20:73:65:74:2e
31 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG
org.snmp4j.transport.DefaultUdpTransportMapping  - Received message from
/127.0.0.1/161 with length 76:
30:4a:02:01:01:04:06:70:75:62:6c:69:63:a2:3d:02:04:57:6f:a0:f8:02:01:00:02:0
1:00:30:2f:30:2d:06:08:2b:06:01:02:01:01:06:00:04:21:53:65:6e:64:69:6e:67:20
:61:20:56:32:20:6f:69:64:20:76:61:6c:75:65:20:74:6f:20:62:65:20:73:65:74:2e
47 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.Snmp  -
Looking up pending request with handle PduHandle[1466933496]
47 [main] DEBUG org.snmp4j.Snmp  - Removed pending request with handle:
PduHandle[1466933496]
Received response after 31 millis
sent response in snmp util SET
Received something new: requestID=1466933496, errorIndex=0,
errorStatus=Success(0)
1.3.6.1.2.1.1.6.0 = Sending a V2 oid value to be set.



Doing SNMPv3 set..
PORT IS 161
Inside init
Inside sendAndProcessResponse
Inside createSnmpSession
Local ENGINE ID IN USM123423432
1078 [main] DEBUG org.snmp4j.security.UsmUserTable  - Adding user SHADES =
UsmUser[secName=SHADES,authProtocol=1.3.6.1.6.3.10.1.1.3,authPassphrase=SHAD
ESAuthPassword,privProtocol=1.3.6.1.6.3.10.1.2.2,privPassphrase=SHADESPrivPa
ssword,localizationEngineID=null]
inside ctxEngID
inside ctxEngID
1094 [DefaultUDPTransportMapping_172.20.29.79/0] INFO
org.snmp4j.transport.DefaultUdpTransportMapping  - UDP receive buffer size
for socket 172.20.29.79/0 is set to: 8192
1094 [main] DEBUG org.snmp4j.security.USM  - RFC3414 §3.1.4.b Outgoing
message is not encrypted
1110 [main] DEBUG org.snmp4j.mp.MPv3  - Adding cache entry:
StateReference[msgID=1743062376,pduHandle=PduHandle[1489389436],securityEngi
neID=,securityModel=org.snmp4j.security.USM at a3bcc1,securityName=SHADES,secur
ityLevel=1,contextEngineID=CtxEngineId,contextName=CtxName]
1110 [main] DEBUG org.snmp4j.Snmp  - Running pending sync request with
handle PduHandle[1489389436] and retry count left 1
1110 [main] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping  - Sending
message to 127.0.0.1/161 with length 79:
30:4d:02:01:03:30:11:02:04:67:e5:05:68:02:03:00:ff:ff:04:01:04:02:01:03:04:1
0:30:0e:04:00:02:01:00:02:01:00:04:00:04:00:04:00:30:23:04:0b:43:74:78:45:6e
:67:69:6e:65:49:64:04:07:43:74:78:4e:61:6d:65:a3:0b:02:01:00:02:01:00:02:01:
00:30:00
1110 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG
org.snmp4j.transport.DefaultUdpTransportMapping  - Received message from
/127.0.0.1/161 with length 87:
30:55:02:01:03:30:11:02:04:67:e5:05:68:02:03:00:ff:ff:04:01:00:02:01:03:04:1
9:30:17:04:09:80:00:13:70:01:ac:14:1d:4f:02:01:00:02:01:00:04:00:04:00:04:00
:30:22:04:00: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:09
1110 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.mp.MPv3  -
SNMPv3 header decoded: msgId=1743062376, msgMaxSize=65535, msgFlags=00,
secModel=3
1110 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG
org.snmp4j.security.USM  - Accepting zero length security name
1125 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.mp.MPv3  -
Removed cache entry:
StateReference[msgID=1743062376,pduHandle=PduHandle[1489389436],securityEngi
neID=,securityModel=org.snmp4j.security.USM at a3bcc1,securityName=SHADES,secur
ityLevel=1,contextEngineID=CtxEngineId,contextName=CtxName]
1125 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.mp.MPv3  -
RFC3412 §7.2.10 - Received PDU (msgID=1743062376) is a response or an
internal class message. PduHandle.transactionID = 1489389436
1125 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.mp.MPv3  -
MPv3 finished
1125 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.Snmp  -
Searching pending request with handlePduHandle[1489389436]
1125 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.Snmp  -
Send new request after report.
1125 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG
org.snmp4j.security.USM  - RFC3414 §3.1.4.b Outgoing message is not
encrypted
1125 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.mp.MPv3  -
Adding cache entry:
StateReference[msgID=1743062377,pduHandle=PduHandle[1489389436],securityEngi
neID=,securityModel=org.snmp4j.security.USM at a3bcc1,securityName=SHADES,secur
ityLevel=1,contextEngineID=CtxEngineId,contextName=CtxName]
1125 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG
org.snmp4j.transport.DefaultUdpTransportMapping  - Sending message to
127.0.0.1/161 with length 79:
30:4d:02:01:03:30:11:02:04:67:e5:05:69:02:03:00:ff:ff:04:01:04:02:01:03:04:1
0:30:0e:04:00:02:01:00:02:01:00:04:00:04:00:04:00:30:23:04:0b:43:74:78:45:6e
:67:69:6e:65:49:64:04:07:43:74:78:4e:61:6d:65:a3:0b:02:01:00:02:01:00:02:01:
00:30:00
1141 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG
org.snmp4j.transport.DefaultUdpTransportMapping  - Received message from
/127.0.0.1/161 with length 87:
30:55:02:01:03:30:11:02:04:67:e5:05:69:02:03:00:ff:ff:04:01:00:02:01:03:04:1
9:30:17:04:09:80:00:13:70:01:ac:14:1d:4f:02:01:00:02:01:00:04:00:04:00:04:00
:30:22:04:00: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:0a
1141 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.mp.MPv3  -
SNMPv3 header decoded: msgId=1743062377, msgMaxSize=65535, msgFlags=00,
secModel=3
1141 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG
org.snmp4j.security.USM  - Accepting zero length security name
1141 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.mp.MPv3  -
Removed cache entry:
StateReference[msgID=1743062377,pduHandle=PduHandle[1489389436],securityEngi
neID=,securityModel=org.snmp4j.security.USM at a3bcc1,securityName=SHADES,secur
ityLevel=1,contextEngineID=CtxEngineId,contextName=CtxName]
1141 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.mp.MPv3  -
RFC3412 §7.2.10 - Received PDU (msgID=1743062377) is a response or an
internal class message. PduHandle.transactionID = 1489389436
1141 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.mp.MPv3  -
MPv3 finished
1141 [DefaultUDPTransportMapping_172.20.29.79/0] DEBUG org.snmp4j.Snmp  -
Searching pending request with handlePduHandle[1489389436]
1141 [main] DEBUG org.snmp4j.Snmp  - Removed pending request with handle:
PduHandle[1489389436]
Received response after 47 millis
sent response in snmp util SET
Inside PDU.REPORT
REPORT: Unknown engine id. Current counter value is 10.









More information about the SNMP4J mailing list