Re: question about '-c configfile' option of snmpd

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/8/20 Asano Yasushi <[email protected]>:
> When we execute snmpd, it searches the configuration file from /etc/snmp
> automatically

That is correct.  There is a built-in path to search for configuration files.

>   even if we do not use -c option.

The '-c' option is used to *add* config files to this search path,
rather than replace the list completely.

> If we execute snmpd usimg -c option as follows,
>
> /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd -a -c
> /etc/snmp/snmpd.conf
>
> snmpd.conf was read and instruction was given in snmpd.conf twice.
> Is this a specification? It seems like a redundancy.

It's a mis-invocation - you don't need to specify configuration files
that is on the default search path.   Alternatively, you could use the
'-C' flag to clear this default list, before reading the specified
config file(s).


Dave

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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.