Greetings,
Im quite new to snmp, and not sure if I fully understand the way I should use snmp4j library because of that, so I apologize in advance if the questions will be off, but I went through the forum and it seems like the issue is either much simpler, or much more complicated on my side…
So currently, the main issue that I experience is bad engineTime and engineBoots. If I understand correctly, I must
- discover the engine id
snmp.discoverAuthoritativeEngineID(GenericAddress.parse(SNMP_TARGET), 5000)
- Make a normal snmp get request, and upon failure, I should receive the REPORT, with engineTime and engineBoots in it, which I will be able to use/further calculate afterwards
step 1 seems to be working just fine, but I never receive any Report message in step 2. I do get some kind of message if I use transportMapping’s transportListener (however, it’s byteBuffer so I havent yet figured out the way to properly decode it and see what’s inside).
I can see messages on the agent side dump, that contain time and boots, but nothing on the client (snmp4j app) side that I’ll be able to use.
09:58:12.606437 IP (tos 0x0, ttl 64, id 48514, offset 0, flags [DF], proto UDP (17), length 162)
xx.xx.xx.xx.snmp > yy.yy.yy.yy.snmp: [bad udp cksum 0xdf4c -> 0xaa0a!] { SNMPv3 { F=a } { USM B=10 T=77335 U="snmpuser" } { ScopedPDU E=_80_00_1f_00_80_88_fa_00_00_80_5b_c0_67_00_00_00_00 C="" { Report(28) R=0 S:snmpUsmMIB.usmMIBObjects.usmStats.usmStatsNotInTimeWindows.0=6 } } }
So I was wondering, if snmp4j is rejecting the report for any particular reason, and there are some extra steps that Im missing.
I really appreciate any assistance with this,
Thank you!