I am trying to send snmptrap from my centos machine to other centos machine. I am seeing the below in logs, snmptrap V3 with net-snmp not working "usm: no match on engineID"
trace: sc_hash(): scapi.c, 464:
trace: sc_get_properlength(): scapi.c, 138:
trace: set_enginetime(): lcd_time.c, 393:
lcd_set_enginetime: engineID 7A 7A 7D 80 7A 7A 7A 83 86 89 8C 8F : boots=0, time=0
trace: usm_get_user_from_list(): snmpusm.c, 3527:
usm: match on user doit
trace: usm_get_user_from_list(): snmpusm.c, 3533:
**usm: no match on engineID (7A 7A 7D 80 7A 7A 7A 83 86 89 8C 8F )**
trace: usm_get_user_from_list(): snmpusm.c, 3527:
usm: match on user doit
trace: usm_get_user_from_list(): snmpusm.c, 3533:
My snmptrapd.conf file looks like below
[root@localhost crash]# cat /etc/snmp/snmptrapd.conf
# Example configuration file for snmptrapd
#
# No traps are handled by default, you must edit this file!
#
# authCommunity log,execute,net public
# traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold
createUser -e 00002E390000005056877fb3 doit MD5 doitpassword DES
authUser log doit AuthNoPriv
I have used net-snmp module of C and below is code block to create engine id,
char engineID[13];
engineID[0]= "0x00";
engineID[1]= "00";
engineID[2]= "2e";
engineID[3]= "39";
engineID[4]= "00";
engineID[5]= "00";
engineID[6]= "00";
engineID[7]= "50";
engineID[8]= "56";
engineID[9]= "87";
engineID[10]= "7f";
engineID[11]= "b3";
engineID[12]= "\0";
session.securityEngineID = (u_char *)engineID;
session.securityEngineIDLen = 12;
Apart from this I have not done any setup on TARGET machine which is receiving the trap.
The main issue the target machine receiving traps showing blank description which. Please check the below screen shot. Not sure what I am doing wrong here. Please advice.