Re: Looking for a way to persist SNMPv3 user configuration
Boris Zweimueller <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your advice! Am 24.06.2011 um 01:32 schrieb Wes Hardaker: >>>>>> On Thu, 23 Jun 2011 10:34:41 +0200, Boris Zweimueller <[email protected]> said: > > BZ> Is there a way that users which have been configured with the > BZ> *snmpusm *command dynamically still exist after restarting the > BZ> agent? > > BZ> Can the content of these tables be saved somehow? > > By default, in the Net-SNMP agent, they are saved dynamically so they > should persist across agent reboots. Unfortunately they do not... I have specified an own persistence file with the environment variable SNMP_PERSISTENT_FILE. When I change the user configuration (with snmpusm) and stop the agent I can see the newly created user is appended to the persistence file. But after restarting the agent my default configuration (from snmpd.conf) is taken again and the newly created user is not read in from the persistence file. What am I doing wrong? Is it necessary to configure something more? Many thanks Boris > > BZ> Now, restarting the device should not fallback to the default > BZ> password. > > The saving-routines are registered in snmplib/snmpusm.c's > init_usm_conf() function (which is called from the agent's mib > modules). Note the 'usm_store_users()' callback that is registered. > See that function, also in snmplib/snmpusm.c, for where the usm users > get saved at shutdown. > -- > Wes Hardaker > Cobham Analytic Solutions ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ 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