![](https://seccdn.libravatar.org/avatar/7425efe45e6e7ec4c614261e9f4ec516.jpg?s=120&d=mm&r=g)
After a great amount of work, I managed to get ntp running...I think. After configuring the IP address, I ran /etc/init.d/xntpd. I noticed it said "resetting time to IP ...." I tried to run 'ntpdate' and I got: ntpdate: no servers can be used, exiting. Do I need to run ntpdate? How and what do I setup to have my clock set itself on a monthly basis? Thanks, Tom - - - - - - - - - - - - - - - - - - Tom Nielsen Neuro Logic Systems, Inc. 805.389.5435 x18 www.neuro-logic.com
![](https://seccdn.libravatar.org/avatar/8ce4efecf1119dcbfc03135ad33fee46.jpg?s=120&d=mm&r=g)
Tom Nielsen wrote:
After a great amount of work, I managed to get ntp running...I think.
After configuring the IP address, I ran /etc/init.d/xntpd. I noticed it said "resetting time to IP ...." I tried to run 'ntpdate' and I got:
ntpdate: no servers can be used, exiting.
Do I need to run ntpdate? How and what do I setup to have my clock set itself on a monthly basis?
You don't need to run ntpdate. You enable xntp using yast, edit /etc/ntp.conf and make sure there is a line server fully.qualified.domain.name pointing to an NTP server. You should can find one using a google search. You can find NTP servers with a Google search. I don't know if you can restrict xntp to looking up the time once a month. I don't need to because on one machine I have an ethernet connection and on the other I use a different solution below. You might find the answer on the howto at http://tldp.org/ My home PC uses an ISDN connection; frequent time updates are not necessary, but I have to match my work PC reasonably closely for rsync. I don't start xntp, but rather putthe following in /etc/ppp/ip-up/local #!/usr/bin/perl #system( "/etc/init.d/squid reload" ); $max_diff = 86400; $touchfile = "/tmp/ntp-update"; $t_diff = $max_diff; $now = time; if( -e $touchfile ){ my @fileinfo = stat $touchfile; $t_diff = $now - $fileinfo[9]; } if( $t_diff ge $max_diff ){ system( "/usr/sbin/ntpdate ntp.cis.strath.ac.uk" ); system( "touch $touchfile" ); } This updates the clock at most once a day, but only when I connect. -- JDL Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
![](https://seccdn.libravatar.org/avatar/9eaec8ef6e1bb27da5ae2c86af89e1d9.jpg?s=120&d=mm&r=g)
On Thu, 5 Jun 2003 17:13, John Lamb wrote:
Tom Nielsen wrote:
After a great amount of work, I managed to get ntp running...I think.
After configuring the IP address, I ran /etc/init.d/xntpd. I noticed it said "resetting time to IP ...." I tried to run 'ntpdate' and I got:
ntpdate: no servers can be used, exiting.
Do I need to run ntpdate? How and what do I setup to have my clock set itself on a monthly basis?
You don't need to run ntpdate. You enable xntp using yast, edit /etc/ntp.conf and make sure there is a line server fully.qualified.domain.name pointing to an NTP server. You should can find one using a google search. You can find NTP servers with a Google search.
I don't know if you can restrict xntp to looking up the time once a month. I don't need to because on one machine I have an ethernet connection and on the other I use a different solution below. You might find the answer on the howto at http://tldp.org/
------------CUT
-- JDL
You could also look at chrony, its designed for infrequent connection to a time server. http://chrony.sunsite.dk/index.php -- Regards, Graham Smith ---------------------------------------------------------
participants (3)
-
Graham Smith
-
John Lamb
-
Tom Nielsen