FW: calling init_mib() to reload SNMP MIBs

Samer Vazdekis <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>


 I managed to reload MIB file. But instead calling init_mib(), I'm calling the following functions,

add_mibdir("/usr/local/share/snmp/mibs/");
init_mib_internals();
read_all_mibs();


I'm afraid however that I might get a memory leak!. Should I call unload_all_mibs() before?. 



From: [email protected]
To: [email protected]
Subject: calling init_mib() to reload SNMP MIBs
Date: Wed, 24 Jun 2009 12:33:03 -0400









Hi,
After my net_snmp agent is initialized and while operating, I'm configuring its signal handler to reload the MIBs upon receiving a HUP signal. I am simply calling init_mib() from my signal handler. This is not working for me!. I'm pronting the mib tree after reload and I don't see new MIB files being added!. Am I missing somthing?. Do I need to shoutdown_mib() before calling init_mib()?.
Thanks.


Internet Explorer 8 makes surfing easier.  Get it now! 
_________________________________________________________________
Create a cool, new character for your Windows Live™ Messenger. 
http://go.microsoft.com/?linkid=9656621

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
ATT00000 (text/plain, 80 B)
------------------------------------------------------------------------------
ATT00001 (text/plain, 248 B)
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.