Dave, Thanks for the reply
> What exactly are you trying to do? While shutting down the agent I am reading SNMP configurations from the database and generating SNMP configuration file (snmpd.conf), that can be read by the agent during the next start-up. Currently I am harding coding the SNMP configuraiton filename as "/deveconf/snmp/snmd.conf". Is it right ? I am using Net-SNMP version 5.1. Thanks Sridhar On Wed, 29 Dec 2004 20:26:00 +0000, "Dave Shield" <[EMAIL PROTECTED]> said: > > Is there any way to get the name of the configuration filename > > that was read by the SNMP master agent ? > > You can retrieve the "type" used by an SNMP application > using: > netsnmp_ds_get_string(NETSNMP_DS_LIBRARY_ID, > NETSNMP_DS_LIB_APPTYPE); > > That will indicate the basename of the config filename(s) that > will be read in. > It's not possible to retrieve "the configuration filename" > (singular) because there isn't simply one such file. The agent > will read in all the files "snmpd.conf" (or more generally all > the files "APPTYPE.conf") that it can find. > > What exactly are you trying to do? > > Dave ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ 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