RE: how to save changes into snmpd.conf
"Ron Rader" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <6BA04340F278EB47AB42AAF2EED9CBBA02E8AD96@dellserver.cipheroptics.local> |
[Please copy any replies to the list] > From: Steve Miller [mailto:[email protected]] > Here are some specific persistent examples. > 1: change sysLocation's value via a snmp request. > 2: change a newly snmp v3 user's passwords via a snmp request. > Both of these operations should cause the snmpd to save the changed info > into the snmpd.conf file during runtime so the info can persist for the > next reboot. Note that this is not related to the hand editing of the > snmpd.conf. Currently. I dont see any of the changes is being saved on > my snmpd.conf . The key here is "via a snmp request." So, how do MIB writes that affect daemon operation become part of the persistent, rather than in-memory, configuration? My short answer is "I don't know" because I haven't had to deal with writes on my project yet. But a little Googling around reveals the "snmpd_store_config(char *)" method, which looks like a key to your problem. Take a look at the code in "agent/mibgroup/mibII/system_mib.c," maybe that will help. If you're running a binary distribution package, then I really don't know. Ron The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you. ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ 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