LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-02-2014, 06:01 PM   #1
opus-outlaw
LQ Newbie
 
Registered: Jan 2008
Posts: 15

Rep: Reputation: 0
ntpdate does not exit


When I execute:

# ntpdate ntp1.servman.ca

The command prompt does not reappear.
(Does this means the command did not execute successfully?)

When I execute

ntpdate -d ntp1.servman.ca

2 Feb 18:55:22 ntpdate[5434]: ntpdate 4.2.6p5@1.2349-o Mon May 20 14:24:36 UTC 2013 (1)

Once again the command prompt does not reappear.

This behavoir does not seem "normal" to me ...

Thank you advance for any advice suggestions offered.

Tom
 
Old 02-02-2014, 06:26 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,014
Blog Entries: 54

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
What does this return:
Code:
ntpdate -d -t 4 -q ntp1.servman.ca
ntpdate -d -t 4 -q ntp2.servman.ca
 
Old 02-02-2014, 08:46 PM   #3
opus-outlaw
LQ Newbie
 
Registered: Jan 2008
Posts: 15

Original Poster
Rep: Reputation: 0
opus ~ # ntpdate -d -t 4 -q ntp1.servman.ca
2 Feb 21:41:01 ntpdate[4995]: ntpdate 4.2.6p5@1.2349-o Mon May 20 14:24:36 UTC 2013 (1)
^C
opus ~ # ntpdate -d -t 4 -q ntp2.servman.ca
2 Feb 21:41:34 ntpdate[4997]: ntpdate 4.2.6p5@1.2349-o Mon May 20 14:24:36 UTC 2013 (1)
^C

This ntp server is on the local network ....

opus ~ # ntpdate -d -t 4 -q 192.168.0.1
2 Feb 21:42:11 ntpdate[4998]: ntpdate 4.2.6p5@1.2349-o Mon May 20 14:24:36 UTC 2013 (1)
^C

The command still hangs ...
 
Old 02-03-2014, 01:12 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,014
Blog Entries: 54

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
That's odd. The "-d" should show your machine polling the NTP server and the "-t 4" should make ntpdate quit after 4 seconds. If you quit it too early with ^C then the output is worthless BTW. If it doesn't poll at all then I'd look at the local firewall first.
 
1 members found this post helpful.
Old 02-07-2014, 05:41 PM   #5
opus-outlaw
LQ Newbie
 
Registered: Jan 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Solved

Thank you unSpawn, the local firewall was blocking the port (123).
(Embarrassed to admit that I did not think to check the port myself.)

Tom
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
exit(communication error), terminated by calling exit(), return code: 255 miliboy Linux - Newbie 11 02-27-2013 01:51 PM
ntpdate XXX works ; ntpdate -q XXX don't works - ntpd stays on local oudoubah Linux - Software 5 12-12-2011 07:28 AM
[SOLVED] exit in script files cause konsole terminal itself to exit Star_Gazer Programming 11 04-12-2010 08:32 AM
regarding ntpdate niaz_ph Linux - Newbie 1 01-12-2010 10:03 PM
Warning: at kernel/exit.c:814 do exit() (Tainted: P ) <- nVidia video problem? Hitboxx Fedora 2 10-06-2007 09:47 PM


All times are GMT -5. The time now is 06:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration