RE: SNMP logging options help
"Mike Ayers" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <83E753BE7B6A324ABB336245BAF1DAAC07C4A8A1@mailserver.metatv-ds.metatv.com> |
> From: Amar Mudrankit [mailto:[email protected]] > Sent: Wed 7/15/2009 12:05 AM > I am running snmpd and snmptrapd daemons with logging options "-Lf > <file-name>", but I always see that the <file-name> log file gets > truncated after some interval. I tried adding "-A" option to both > daemons but it did not help. > > $ snmptrapd -c <conf-file> -A -Lf <log-file> > > How do I achieve to logging to a separate / custom file location > without the file getting truncated? Are you trying to send both to the same log file? I would not expect that to work, but you could do something like this: $ nohup snmptrapd -f -c conf-file -A -Lo >>log-file 2>&1 & ...which should work even if you use the same file for multiple daemons. HTH, Mike ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ 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