Re: Is it ok..to give a same Agent snmpd.conf file to the SubAgentdemon code : init_snmp(snmpd.conf)
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/2/23 manu kumar <[email protected]>: > Hi All, > I have a question in implementing the SubAgent , In the > "example-demon.c" it says > > /* example-demon will be used to read example-demon.conf files. */ > > init_snmp("example-demon"); > > So Instead of "example-demon" is ok to give the "snmpd.conf" file of Agent It doesn't really matter what token you pass to "init_snmp". The main (only?) use of this is to decide what application-specific config files to read. So if you initialise the library using init_snmp( "aaabbb" ); then the application (agent, subagent, whatever) will look for the config file "aaabbb.conf". > From which path it will read the "example-demon/conf" file. Run the command snmpget -Dread_config 2>&1 | grep path This will report the search path used for configuration files. Dave ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ 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