1847177 Members
5269 Online
110263 Solutions
New Discussion

Re: xntpd

 
Ruediger Noack
Valued Contributor

xntpd

Time service works fine on all my hpux boxes.
But there are a lot of messages in syslog.log like this :
.... xntpd[...]: synchronized to , stratum=2

I'd like suppress all the messages. What is to do ?

Thanks
Ruediger
8 REPLIES 8
Andy Monks
Honored Contributor

Re: xntpd

Not sure you can. Doesn't appear to be any options int the man pages or the config file.
Victor BERRIDGE
Honored Contributor

Re: xntpd

configure /etc/syslog.conf


Regards
Victor
Stefan Farrelly
Honored Contributor

Re: xntpd


syslog is not an error log, it is a logfile which may have errors but may also have lots of other messaes logged. Read up on xntpd and see if you need to reduce the logging level.
The only other solution would be to run a cronjob to delete the xntpd messages
out of syslog. Hardly worth the effort.


Im from Palmerston North, New Zealand, but somehow ended up in London...
Rick Garland
Honored Contributor

Re: xntpd

The messages you are seeing tell you what the xntpd is doing, who it is sync-ing to, how far the deviation is, etc. These are not error messages. xntpd is designed to log to the syslog file. There are also a cople of line in the /etc/ntp.conf file that allow you to set the locations for other information pieces such as a driftfile, stats, etc.

http://www.eecis.udel.edu/~ntp/ntpfaq has some good information.
Rita C Workman
Honored Contributor

Re: xntpd

Well you could reconfigure your syslog - but the downside is if you turn off the xntp messages you may not get one telling you there is a problem with this.

I have inetd turned on so I get those annoying resistrar msgs every 2 minutes.
I just wrote a quick and dirty script that I run every morning B4 I start reading logs....I just cat the syslog file and do a grep -v for the info I don't want to see (specific syntax here, cause I don't want to loose error msgs..) than I send it to a syslog.tmp file
What this does is anything that does NOT match my grep criteria passes to the tmp file..(thus removing the pesky msgs). You can put multiple statements by using -v -e 'take out this' -e 'take out this too'.
Then you can just do a copy back to the syslog.log file and remove your temp file.
Regards,
Tim Malnati
Honored Contributor

Re: xntpd

As an alternative you could download and install the pd version of ntp which has an option to log to a separate file. It has been ported to 10.20 and can be found at the HP porting center at http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/xntp-3.5.93e/
Ruediger Noack
Valued Contributor

Re: xntpd

Thanks all for reply.

I know syslog.log is a nice logfile for system messages. But i think it has only important messages to report. And time server sync messages are not important for me. I hoped to reconfigure time service not syslogd. I also dont want to modify syslog.log with any scripts.
So I will try to use gridfile - after holidays.

So long
Ruediger Noack
Valued Contributor

Re: xntpd

Anyone interested in my solution ?

Start xntpd -l ... --> all xntpd messages appear now in this loopfile.

permanent configuration :

edit /etc/rc.config.d/netdaemons.

export XNTPD_ARGS="-l /var/adm/xntp.log" # or that file you like

remember to restart xntpd.