Hi All, I'm trying to add the support to receive snmpv3 traps in my c++ application code(which is using net-snmp library). I'm not using snmptrapd. As of now its able to receive SNMPv2 traps and I'm able to process them.
But when I am sending v3 traps to my application, its throwing SNMPERR_USM_UNKNOWNSECURITYNAME(-43) error while parsing(see below). netsnmp_pdu *trappdu = snmp_pdu_create(SNMP_MSG_TRAP2); if(trappdu != NULL) { int errorNumber = snmp_parse(0, &session, trappdu,(u_char*)snmpPacket->data, (size_t)snmpPacket->dataLength); } while googling, I found some posts which mention that you need to create user in snmptrapd.conf file. But in my case I'm not at all using snmptrapd, then what is the use of adding it in conf file. In that case how to process v3 traps. Are there any net-snmp APIs to create v3 user on receiver side? What do I need to do to process them in my code? Any help will be appreciated. Thanks, Jaspal
------------------------------------------------------------------------------
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users