Re: log DEBUGMSGTL meesage to a file

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Thu, 2005-11-17 at 10:47 +0800, Jim Su wrote:
> So I run /snmpd -Lf -DmyAgent.
> From the man pager if there is no file specified for -Lf option
> the log is created in /var/log/snmpd.log. 

No - that's not correct.
The -Lf option *requires* a file to be specified
(and is probably trying to log to a file called "-DmyAgent")

The filename being optional is referring to the old '-l' option
(and may no longer hold anyway - I'd need to check).

I'll look at tweaking the documentation to clarify this.


> How to set the option so I can see the message printed
>  by DEBUGMSGTL in the log file instead of stdout?

Specify the logging file explicitly:

   ./snmpd -Lf /var/log/snmpd.log  -DmyAgent

Dave


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
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.