[SNMP4J] Help with TestAgent!!

Muralidharan Narayanan murali at TriveniDigital.com
Thu Sep 27 17:29:24 CEST 2007


I downloaded the latest library for SNMP4J and SNMP4J-agent. I created a
project for running the TestAgent in Eclipse IDE. I am sure somebody has an
explanation for this below issues. I am sorry if I am revisiting this again.

- Upon running the example as is, I see the following ouput. But the INFORM
(trap) for COLDSTART is not coming to the SNMP manager running on the same
PC that this "TestAgent" is running.

- I was running the SNMP manager MIBExplorer with SNMPv2c versus TestAgent
with SNMPv3 - Didn't see the INFORM. I also tried SNMP manager in
MIBExplorer with SNMPv3 (SHADES user added) versus TestAgent with SNMPv3 -
Didn't see INFORM either.

- However, I am able to SEND & RECEIVE "GET/GET-RESPONSE" messages from the
SNMP manager on the same PC. I sent GET requests for MIB obj
snmpv2MIB.SysUpTime (1.3.6.1.2.1.1.3) and was able to get response. This
worked only with manager on v2c only, not woring for manager on v3 though.

- If I strip down all SNMPv3 references from TestAgent and run it with SNMP
manager on v2c, I receive the COLDSTART trap but I am unable to SEND &
RECEIVE "GET/GET-RESPONSE" messages

Does anybody know why?

Thanks for response
Murali

OUTPUT ---------------------------------------------------------------------
--------- (Sorry if output format is badly seen on editor)
0 [main] DEBUG org.snmp4j.security.Salt - Initialized Salt to
8c0ceb7370aee8f4.

.....

313 [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]

....

422 [main] DEBUG org.snmp4j.security.UsmUserTable - Adding user TEST =
UsmUser[secName=TEST,authProtocol=1.3.6.1.6.3.10.1.1.3,authPassphrase=maples
yrup,privProtocol=1.3.6.1.6.3.10.1.2.2,privPassphrase=maplesyrup,localizatio
nEngineID=null]

....

469 [main] DEBUG org.snmp4j.security.UsmUserTable - Adding user SHA =
UsmUser[secName=SHA,authProtocol=1.3.6.1.6.3.10.1.1.3,authPassphrase=SHAAuth
Password,privProtocol=null,privPassphrase=null,localizationEngineID=null]

.....

626 [DefaultUDPTransportMapping_0.0.0.0/161] INFO
org.snmp4j.transport.DefaultUdpTransportMapping - UDP receive buffer size
for socket 0.0.0.0/161 is set to: 8192

626 [main] INFO org.snmp4j.agent.mo.snmp.NotificationOriginatorImpl -
Notification 1.3.6.1.6.3.1.1.5.1 issued with []

626 [main] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB - VACM access requested
for context=, securityName=SHADES, securityModel=3, securityLevel=3,
viewType=0, OID=1.3.6.1.6.3.1.1.5.1

626 [main] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB - Found group name
'v3group' for secName 'SHADES and secModel 3

626 [main] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB - Got views
[DefaultMOMutableRow2PC[index=7.118.51.103.114.111.117.112.0.3.3,values=[1,
fullReadView, fullWriteView, fullNotifyView, 3, 1]] for group name 'v3group'

626 [main] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB - Matching view found for
group name 'v3group' is 'fullNotifyView'

626 [main] DEBUG org.snmp4j.agent.mo.snmp.VacmMIB - Access allowed for view
'fullNotifyView' by subtree 1.3 for OID 1.3.6.1.6.3.1.1.5.1

641 [main] DEBUG org.snmp4j.security.USM - RFC3414 §3.1.4.b Outgoing message
is not encrypted

641 [main] DEBUG org.snmp4j.mp.MPv3 - Adding cache entry:
StateReference[msgID=252896116,pduHandle=PduHandle[1782519004],securityEngin
eID=,securityModel=org.snmp4j.security.USM at 25d2b2,securityName=SHADES,securi
tyLevel=1,contextEngineID=,contextName=]

641 [main] DEBUG org.snmp4j.Snmp - Running pending sync request with handle
PduHandle[1782519004] and retry count left 1

641 [main] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping - Sending
message to 127.0.0.1/162 with length 61:
30:3b:02:01:03:30:11:02:04:0f:12:e3:74: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:11:04:00:04:00:a6:0b:02
:01:00:02:01:00:02:01:00:30:00

2643 [Timer-0] DEBUG org.snmp4j.security.USM - RFC3414 §3.1.4.b Outgoing
message is not encrypted

2643 [Timer-0] DEBUG org.snmp4j.mp.MPv3 - Adding cache entry:
StateReference[msgID=252896117,pduHandle=PduHandle[1782519004],securityEngin
eID=,securityModel=org.snmp4j.security.USM at 25d2b2,securityName=SHADES,securi
tyLevel=1,contextEngineID=,contextName=]

2643 [Timer-0] DEBUG org.snmp4j.Snmp - Running pending sync request with
handle PduHandle[1782519004] and retry count left 0

2643 [Timer-0] DEBUG org.snmp4j.transport.DefaultUdpTransportMapping -
Sending message to 127.0.0.1/162 with length 61:
30:3b:02:01:03:30:11:02:04:0f:12:e3:75: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:11:04:00:04:00:a6:0b:02
:01:00:02:01:00:02:01:00:30:00

4644 [Timer-0] DEBUG org.snmp4j.Snmp - Request timed out: 1782519004

4644 [main] DEBUG org.snmp4j.Snmp - Removed pending request with handle:
PduHandle[1782519004]

4644 [main] INFO org.snmp4j.agent.mo.snmp.NotificationOriginatorImpl - Sent
notification INFORM[reqestID=1782519004, errorStatus=0, errorIndex=0,
VBS[1.3.6.1.2.1.1.3.0 = 0:00:00.59; 1.3.6.1.6.3.1.1.4.1.0 =
1.3.6.1.6.3.1.1.5.1]] to org.snmp4j.UserTarget[address=127.0.0.1/162,
version=3, timeout=2000, retries=1]



More information about the SNMP4J mailing list