The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 !!

More UNIX and Linux Forum Topics 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 11:19 AM
connecting UNIX/Linux to NTP server learn82 UNIX for Advanced & Expert Users 1 04-10-2008 09:00 AM
Connecting to SUN server from PC zam UNIX for Dummies Questions & Answers 33 09-03-2007 01:04 AM
How To Provide Time Sync Using Nts-150 Time Server On Unix Network? pesty UNIX for Advanced & Expert Users 2 03-22-2007 02:20 AM
Connecting to an Exchange Server camerja1 Windows & DOS: Issues & Discussions 2 08-05-2002 11:31 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-30-2005
Hayez Hayez is offline
Registered User
  
 

Join Date: Feb 2004
Posts: 13
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.
  #2 (permalink)  
Old 11-30-2005
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
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.
  #3 (permalink)  
Old 11-30-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
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.
  #4 (permalink)  
Old 11-30-2005
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
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.
  #5 (permalink)  
Old 11-30-2005
Hayez Hayez is offline
Registered User
  
 

Join Date: Feb 2004
Posts: 13
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.
  #6 (permalink)  
Old 12-02-2005
infierno's Avatar
infierno infierno is offline
Registered User
  
 

Join Date: Jul 2005
Location: Asuncion, Paraguay
Posts: 79
ntpd uses udp for time sync with another timeserver
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0