[SNMP4J] Sending traps to 2 destinations with the same security name and different authentication
I-Wen Yang
I-Wen.Yang at nam.abb.com
Thu Feb 20 23:54:41 CET 2014
Hi,
I added 2 Usm users with same security name, different engine ids, and authentications. While trying to send the traps, I received following error messages
org.snmp4j.security.USM - USM.getUser - User 'xxxxxx' unknown
org.snmp4j.security.USM - Security name not found for engineID=...
Message processing model 3 returned error: Unknown security name
Look like the localEngineID is used when the codes try to find the security name. I traced into the MPv3.java program and found following:
if (scopedPDU.isConfirmedPdu()) {
flags |= MPv3_REPORTABLE_FLAG;
}
else {
secEngineID = localEngineID;
}
As trap is not a confirmed pdu, the secEngineID is set to localEngineID.. Please feel free to correct me if my understanding of the code is wrong.
Would you please share your thoughts on what I may do wrong or missed?
Thanks,
I-Wen
More information about the SNMP4J
mailing list