SNMPd panic: unregister_config_handler
I created a subagent, which got dynamically linked with snmp agent. During stop and start, I noticed the following crash in snmpd service. The module snmp was trying to unregister was in fact compiled/linked properly with subagent (as you can see in 'nm' output). Could anyone let me know what could have happened that caused the crash here? (gdb) bt #0 0x00381e8091eb in check_match.12440 () from /lib64/ld-linux-x86-64.so.2 #1 0x00381e809b87 in do_lookup_x () from /lib64/ld-linux-x86-64.so.2 #2 0x00381e809e1a in _dl_lookup_symbol_x () from /lib64/ld-linux-x86-64.so.2 #3 0x00381ed238d6 in do_sym () from /lib64/libc.so.6 #4 0x00381f0010c4 in dlsym_doit () from /lib64/libdl.so.2 #5 0x00381e80e176 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2 #6 0x00381f00129c in _dlerror_run () from /lib64/libdl.so.2 #7 0x00381f00107a in dlsym () from /lib64/libdl.so.2 #8 0x7f6be6aa9074 in dlmod_unload_module (dlm=0x8fe6c0) at ucd-snmp/dlmod.c:159 #9 0x7f6be6aa9506 in dlmod_free_config () at ucd-snmp/dlmod.c:245 #10 0x7f6be67dd557 in unregister_config_handler (type_param=, token=) at read_config.c:425 #11 0x7f6be6aa8040 in shutdown_dlmod () at ucd-snmp/dlmod.c:612 #12 0x7f6be6b49b7d in _shutdown_mib_modules (majorID=, minorID=, serve=, client=) at ../agent/mibgroup/mib_module_shutdown.h:7 #13 0x7f6be67e7a96 in snmp_call_callbacks (major=0, minor=2, caller_arg=0x0) at callback.c:363 #14 0x7f6be67c0767 in snmp_shutdown (type=) at snmp_api.c:908 #15 0x004037e1 in main (argc=, argv=) at snmpd.c:1096 (gdb) f 8 #8 0x7f6be6aa9074 in dlmod_unload_module (dlm=0x8fe6c0) at ucd-snmp/dlmod.c:159 159 dl_deinit = dlsym(dlm->handle, sym_deinit); (gdb) p *dlm $1 = {next = 0x909950, index = 14, name = "exampleTable", '\000' , path = "/usr/lib/snmp/dlmod/exampleStats.so", '\000' , error = '\000' , handle = 0x8fe970, status = 1} (gdb) p sym_deinit $2 = "deinit_exampleTable\000\000\000PMk\177\377\177\000\000\325\033\201\346k\177\000\000\300Mk\177\377\177\000\000\377\001\000\000\000\000\000\000p\243" (gdb) bash$ nm /usr/lib/snmp/dlmod/exampleStats.so | grep deinit 2c65 T deinit_exampleStatsTable2 43de T deinit_exampleTable bash$ -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912___ 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
Re: How to send snmpinform using snmp_api's
On 11 January 2013 09:40, Ashish Sharma wrote: > Can you please let me know or share an example to send snmpinform using > net-snmp API's See the code for 'apps/snmptrap.c' - this supports sending both unacknowledged notifications (traps) and acknowledged notifications (informs) Dave -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ 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
How to configure snmp-inform over DTLS
I run version 5.6.1.1. Snmp-inform over v2c and v3-usm works fine. Get/set attribute retrieval from mgr to agent through v3/DTLS using private certificates works fine. I try to send snmp-inform over DTLS, snmp-agent sends no message. Enabling agent-side D-tokens dtls,tls,openssl,cert,trapsess show no activity when a trap should be sent. My config in /usr/local/share/snmp/snmpd.conf has a trapsess line, similar to the v3-usm one, which specifies -T their-identify, our-identity and defSecurityModel=tsm. Any example on how to configure agent and manager side to run v3-DTLS inform/traps? Thanks, Gerhard __ This email has been scanned by the Boundary Defense for Email Security System. For more information please visit http://www.apptix.com/email-security/antispam-virus __-- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812___ 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
accessing net-snmp using python bindings, is callbacks possible?
'Aloha! As subject says "accessing net-snmp using python bindings, is callbacks possible?" With the perl bindings it were quite simple, but I cant find any documentation or examples showing that it should be possible with python. Links, hints, examples, pointers, laugh, yeah almost anything, is most welcome! -- /Morten %-) -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812___ 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
How to send snmpinform using snmp_api's
Hi , Can you please let me know or share an example to send snmpinform using net-snmp API's -- Ashish -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812___ 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