[SNMP4J] Help with snmp4j-tool and SNMPv3

Frank Fock fock at agentpp.com
Wed Aug 16 23:29:51 CEST 2006


Hi,

You seem to be using the same engine ID for agent and
manager - that's why the time synchronization fails.

Best regards,
Frank

Nídia S. Campos wrote:
> Hi,
> I'm trying to get ifDescr values from  TestAgent using
> snmp4j_tool-v1.7.2with the command bellow:
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 
> 
> C:\snmp4j_tool>SNMP4J -a SHA -A SHAAuthPassword -u SHA -p GETNEXT
> udp:localhost/161 1.3.6.1.2.1.2.2.
> 1.2
> 16/08/2006 15:11:45 org.snmp4j.log.JavaLogAdapter log
> INFO: UDP receive buffer size for socket 200.129.46.39/0 is set to: 8192
> 16/08/2006 15:11:45 org.snmp4j.log.JavaLogAdapter log
> WARNING: 1.3.6.1.6.3.15.1.1.2.0 = 1
> 16/08/2006 15:11:46 org.snmp4j.log.JavaLogAdapter log
> WARNING: 1.3.6.1.6.3.15.1.1.2.0 = 2
> Received response after 2017 millis
> Request timed out.
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
> 
> 
> And the request timed out.
> The Debug at TestAgent is:
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
> 
> 
> 953 [DefaultUDPTransportMapping_127.0.0.1/161] INFO
> org.snmp4j.transport.DefaultUdpTransportMapping
> - UDP receive buffer size for socket 127.0.0.1/161 is set to: 8192
> 11298 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.transport.DefaultUdpTransportMappi
> ng  - Received message from localhost/127.0.0.1/2050 with length 61:
> 30:3b:02:01:03:30:11:02:04:06:5
> f:2f:6c: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
> 11314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG 
> org.snmp4j.mp.MPv3  -
> SNMPv3 header decoded:
> msgId=106901356, msgMaxSize=65535, msgFlags=04, secModel=3
> 11314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.security.USM  - RFC3414 º3.2.3 Unk
> nown engine ID:
> 11314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG 
> org.snmp4j.mp.MPv3  -
> Adding cache entry: Sta
> teReference[msgID=106901356,pduHandle=PduHandle[1185969691],securityEngineID=,securityModel= 
> 
> org.snmp
> 4j.security.USM at 176c74b
> ,securityName=,securityLevel=1,contextEngineID=,contextName=]
> 11314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG 
> org.snmp4j.mp.MPv3  -
> Removed cache entry: St
> ateReference[msgID=106901356,pduHandle=PduHandle[1185969691],securityEngineID=,securityModel= 
> 
> org.snm
> p4j.security.USM at 176c74b
> ,securityName=,securityLevel=1,contextEngineID=,contextName=]
> 11314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.security.USM  - RFC3414 º3.1.4.b O
> utgoing message is not encrypted
> 11314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.transport.DefaultUdpTransportMappi
> ng  - Sending message to 127.0.0.1/2050 with length 87:
> 30:55:02:01:03:30:11:02:04:06:5f:2f:6c:02:03
> :00:ff:ff:04:01:00:02:01:03:04:19:30:17:04:09:80:00:13:70:01:c8:81:2e:27: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:0 
> 
> 1:04:00:41:01:01
> 11314 [DefaultUDPTransportMapping_127.0.0.1/161] WARN
> org.snmp4j.MessageDispatcherImpl  - 1.3.6.1.6.
> 3.15.1.1.4.0 = 1
> 11423 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.transport.DefaultUdpTransportMappi
> ng  - Received message from localhost/127.0.0.1/2050 with length 112:
> 30:6e:02:01:03:30:11:02:04:06:
> 5f:2f:6d:02:03:00:ff:ff:04:01:05:02:01:03:04:28:30:26:04:09:80:00:13:70:01:c8:81:2e:27:02:01:00:02:0 
> 
> 1:00:04:03:53:48:41:04:0c:43:a3:df:25:83:d6:bf:8b:89:35:40:6c:04:00:30:2c:04:09:80:00:13:70:01:c8:81 
> 
> :2e:27:04:00:a1:1d:02:04:2b:b2:95:09:02:01:00:02:01:00:30:0f:30:0d:06:09:2b:06:01:02:01:02:02:01:02: 
> 
> 05:00
> 11423 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG 
> org.snmp4j.mp.MPv3  -
> SNMPv3 header decoded:
> msgId=106901357, msgMaxSize=65535, msgFlags=05, secModel=3
> 11423 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.security.USM  - getUser(engineID=8
> 0:00:13:70:01:c8:81:2e:27, securityName=SHA)
> 11423 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.security.UsmTimeTable  - CheckTime
> : received message outside time window (authorative):engineBoots differ
> 11423 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.security.USM  - RFC3414 º3.2.7.a N
> ot in time window; engineID='80:00:13:70:01:c8:81:2e:27', engineBoots=0,
> engineTime=0
> 11423 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG 
> org.snmp4j.mp.MPv3  -
> Adding cache entry: Sta
> teReference[msgID=106901357,pduHandle=PduHandle[1185969692],securityEngineID=80:00:13:70:01:c8:81:2e 
> 
> :27,securityModel=org.snmp4j.security.USM at 176c74b
> ,securityName=SHA,securityLevel=2,contextEngineID=,
> contextName=]
> 11423 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG 
> org.snmp4j.mp.MPv3  -
> Removed cache entry: St
> ateReference[msgID=106901357,pduHandle=PduHandle[1185969692],securityEngineID=80:00:13:70:01:c8:81:2 
> 
> e:27,securityModel=org.snmp4j.security.USM at 176c74b
> ,securityName=SHA,securityLevel=2,contextEngineID=
> ,contextName=]
> 11423 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.security.USM  - RFC3414 º3.1.4.b O
> utgoing message is not encrypted
> 11439 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.transport.DefaultUdpTransportMappi
> ng  - Sending message to 127.0.0.1/2050 with length 102:
> 30:64:02:01:03:30:11:02:04:06:5f:2f:6d:02:0
> 3:00:ff:ff:04:01:01:02:01:03:04:28:30:26:04:09:80:00:13:70:01:c8:81:2e:27:02:01:09:02:01:0b:04:03:53 
> 
> :48:41:04:0c:77:db:5a:da:0a:51:68:11:26:b7:62:7e: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:02:00:41:01:01
> 11439 [DefaultUDPTransportMapping_127.0.0.1/161] WARN
> org.snmp4j.MessageDispatcherImpl  - 1.3.6.1.6.
> 3.15.1.1.2.0 = 1
> 12314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.transport.DefaultUdpTransportMappi
> ng  - Received message from localhost/127.0.0.1/2050 with length 112:
> 30:6e:02:01:03:30:11:02:04:06:
> 5f:2f:6e:02:03:00:ff:ff:04:01:05:02:01:03:04:28:30:26:04:09:80:00:13:70:01:c8:81:2e:27:02:01:00:02:0 
> 
> 1:01:04:03:53:48:41:04:0c:b2:bf:07:25:e7:42:66:f6:78:f3:72:1f:04:00:30:2c:04:09:80:00:13:70:01:c8:81 
> 
> :2e:27:04:00:a1:1d:02:04:2b:b2:95:09:02:01:00:02:01:00:30:0f:30:0d:06:09:2b:06:01:02:01:02:02:01:02: 
> 
> 05:00
> 12314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG 
> org.snmp4j.mp.MPv3  -
> SNMPv3 header decoded:
> msgId=106901358, msgMaxSize=65535, msgFlags=05, secModel=3
> 12314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.security.USM  - getUser(engineID=8
> 0:00:13:70:01:c8:81:2e:27, securityName=SHA)
> 12314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.security.UsmTimeTable  - CheckTime
> : received message outside time window (authorative):engineBoots differ
> 12314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.security.USM  - RFC3414 º3.2.7.a N
> ot in time window; engineID='80:00:13:70:01:c8:81:2e:27', engineBoots=0,
> engineTime=1
> 12314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG 
> org.snmp4j.mp.MPv3  -
> Adding cache entry: Sta
> teReference[msgID=106901358,pduHandle=PduHandle[1185969693],securityEngineID=80:00:13:70:01:c8:81:2e 
> 
> :27,securityModel=org.snmp4j.security.USM at 176c74b
> ,securityName=SHA,securityLevel=2,contextEngineID=,
> contextName=]
> 12314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG 
> org.snmp4j.mp.MPv3  -
> Removed cache entry: St
> ateReference[msgID=106901358,pduHandle=PduHandle[1185969693],securityEngineID=80:00:13:70:01:c8:81:2 
> 
> e:27,securityModel=org.snmp4j.security.USM at 176c74b
> ,securityName=SHA,securityLevel=2,contextEngineID=
> ,contextName=]
> 12314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.security.USM  - RFC3414 º3.1.4.b O
> utgoing message is not encrypted
> 12314 [DefaultUDPTransportMapping_127.0.0.1/161] DEBUG
> org.snmp4j.transport.DefaultUdpTransportMappi
> ng  - Sending message to 127.0.0.1/2050 with length 102:
> 30:64:02:01:03:30:11:02:04:06:5f:2f:6e:02:0
> 3:00:ff:ff:04:01:01:02:01:03:04:28:30:26:04:09:80:00:13:70:01:c8:81:2e:27:02:01:09:02:01:0c:04:03:53 
> 
> :48:41:04:0c:8a:22:05:27:81:85:95:30:d1:56:b0:59: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:02:00:41:01:02
> 12330 [DefaultUDPTransportMapping_127.0.0.1/161] WARN
> org.snmp4j.MessageDispatcherImpl  - 1.3.6.1.6.
> 3.15.1.1.2.0 = 2
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
> 
> 
> 
> Please, may someone help me?
> 
> Thank you in advance,
> 
> Nídia
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list