[SNMP4J] V3 Traps sent using SNMP4J , third party snmp trap receiver always receives EngineTime 0 and EngineBoot as 0

Vijay Reddy (dvsreddy) dvsreddy at cisco.com
Fri Aug 21 02:38:25 CEST 2009


Hi All,

Am learning SNMPv3 and at the same time testing the SNMPv3 receiver,

Receiver receives V3 trap, but always with engineTime, engineBoots,
authEngineTime and authEngineBoots as 0.   For the same reason after
some time, receiver unable to process traps with error message, NOT IN
TIME WINDOW.

Can someone pls help me as what explicit changes required to send
appropriate values,

Sample code ,

USM usm = new USM(SecurityProtocols.getInstance(),localEngineID,
engineBootCount);

usm.setLocalEngine(localEngineID, 0, 1000);

SecurityParameters securityParams = usm.newSecurityParametersInstance();

SecurityModels.getInstance().addSecurityModel(usm);

addUsmUser(snmp); 

Thanks and regards,

Vijay

 




More information about the SNMP4J mailing list