The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
connecting my server to comcast mcraul UNIX for Dummies Questions & Answers 0 04-29-2008 08:19 AM
connecting UNIX/Linux to NTP server learn82 UNIX for Advanced & Expert Users 1 04-10-2008 06:00 AM
Connecting to SUN server from PC zam UNIX for Dummies Questions & Answers 33 09-02-2007 10:04 PM
How To Provide Time Sync Using Nts-150 Time Server On Unix Network? pesty UNIX for Advanced & Expert Users 2 03-21-2007 10:20 PM
Connecting to an Exchange Server camerja1 Windows & DOS: Issues & Discussions 2 08-05-2002 08:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-29-2005
Registered User
 

Join Date: Feb 2004
Posts: 13
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Connecting to time server

Hi there,

My unix box is behind a firewall and I have no access to the firewall, it is currently having time problems so I want to point it at a time server outside of the firewall to keep it's time accurate.

Can anyone think of a way to test connectivity to the time server over port 123 for NTP. I've tried telnet <timeserver> 123 although not understanding NTP I'm not sure of a way to check.

Anyone have any suggestions?

Cheers,
H.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-30-2005
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
telnet ought to work if the time server allows TCP/IP connections. If it says 'connection refused', the server's either not allowing connections or your firewall blocks it.
Reply With Quote
  #3 (permalink)  
Old 11-30-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,240
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
telnet doesn't support the ntp protocol, AFAIK.

You need ntpd which is a freebie -
http://www.pool.ntp.org/

Read the how to use page first.
Reply With Quote
  #4 (permalink)  
Old 11-30-2005
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by jim mcnamara
telnet doesn't support the ntp protocol, AFAIK.
All we need to check for is the ability to connect at all, it doesn't need to understand it. So yeah, if it connects it could print garbage. It's a quick-and-dirty way of testing for a connection.
Reply With Quote
  #5 (permalink)  
Old 11-30-2005
Registered User
 

Join Date: Feb 2004
Posts: 13
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Thanks for that - it turns out that it didn't have access.Will have to get someone to change the firewall settings. Another way I was told by a networking guy is to run ntpdate -d (in debugging mode)

from the man page:-

-d Enable the debugging mode, in which ntpdate will go through all the steps, but not adjust the local clock. Information useful for general debugging will also be printed.

Many thanks!

H.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 12:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102