On Fri, 29 May 2015 16:14:17 +0530 Ajit wrote: AA> I have a application in C which receives snmp traps. There is a AA> issue with v3 traps. Although I have done the necessary setup. AA> I am able to receive v3 traps using the command "snmptrapd -Lo AA> -n -f". But when I run my application , no traps are received. AA> AA> The reason may be that, my application is not reading a config AA> file for snmp users and engineID unlike when I run snmptrapd AA> which reads snmptrapd.conf.
[Note: CC/moving to coders list] Hi Ajit, Did you ever get this working? When you call init_snmp("myapp"), the library should read myapp.conf and should generate an engineID. You may need to set your persistent dir explicitly for the engineID to be saved between runs (unless you're running as root). See set_persistent_directory(const char *dir). Robert ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders