Connecting to time server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Connecting to time server
# 1  
Old 11-30-2005
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  
Old 11-30-2005
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  
Old 11-30-2005
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  
Old 11-30-2005
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  
Old 11-30-2005
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  
Old 12-02-2005
ntpd uses udp for time sync with another timeserver
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sqlplus not connecting the 2nd time in for loop

Hi, I am trying to get the rows(First step is to get the poolid's and then second step run a loop to get the output based on each pool id and third connection is to get the member id and pool id based on a different condition) where based of certain conditions and storing it in a file. I wrote the... (6 Replies)
Discussion started by: ajayakunuri
6 Replies

2. UNIX for Dummies Questions & Answers

Why does SSH store the fingerprints of remote host when connecting for the first time?

I was wondering why does ssh store the fingerprints of remote host when connecting for the first time? I will appreciate a detailed response, can't figure it out. (2 Replies)
Discussion started by: ChiefGandalf
2 Replies

3. Shell Programming and Scripting

Connecting to Windows Server

Hi, One of the folders in UNIX is mapped with a drive on Windows.From this UNIX machine I want to connect to the Windows Server, perform some checks and view the results back on the UNIX machine. For e.g. if I touch a file under the shared folder on UNIX, I should be able to telnet to Windows... (2 Replies)
Discussion started by: swasid
2 Replies

4. Shell Programming and Scripting

Connecting to other server thru ftp

Hi, Can someone help me on how to ftp to UNIX server from an another UNIX Server. I tried the follwoing but it is not working. ftp -n 10.10.0.1 quote user usrname quote pass passwd ls Though ftp is starting it is not allowing me run command..... it is asking to Thanks in... (5 Replies)
Discussion started by: EmbedUX
5 Replies

5. Ubuntu

Connecting to a remote server

Hi, I have an interesting problem. I cannot connect to a personal server I set up. What's interesting is that I can connect to it from the LAN using its non-local IP address. However, I cannot seem to connect to it from anywhere else. Here's how my server is set up: My entire home has a... (8 Replies)
Discussion started by: Altay_H
8 Replies

6. Shell Programming and Scripting

Connecting other server using ssh!

Hi All, Here i am having a problem in my script....:) i have one script which will connect from my linux box to antoher linux box.. let say...currently i am in 55.23.621.123 and i want to connect to another box which is 55.23.621.118 as we know we can connect using ssh... (2 Replies)
Discussion started by: Shahul
2 Replies

7. UNIX for Dummies Questions & Answers

Connecting to UNIX server

Hi, My knowledge bucket of UNIX is almost empty. I have developed an application in EXCEL which can create XML files (Metadata) from Binaries. These binaries are stored in UNIX server on regular intervals. Currently I am transferring all binaries(GBs of files) to WINDOWS using WINSCP and... (2 Replies)
Discussion started by: bobs
2 Replies

8. UNIX for Dummies Questions & Answers

connecting my server to comcast

Hi, I just setup a server running centos 4 that I am going to use for a mail server. I setup NAT in my router to open up the smtp port and i assigned the server a static ip address using ifconfig. Now is there a step im missing because now i cant route out of the server or ping anything? Oh btw... (0 Replies)
Discussion started by: mcraul
0 Replies

9. UNIX for Dummies Questions & Answers

Connecting to SUN server from PC

I have old SUN server on my desk. I know it worked before. I want to be able to connect to server from my PC. Just to establish a dump terminal. 1. I connected to power socket 2. I Have a cable that fits in (i believe is a com ports there are A B slots the same I plugged it in A). They are... (33 Replies)
Discussion started by: zam
33 Replies

10. Windows & DOS: Issues & Discussions

Connecting to an Exchange Server

Hi, I have installed Redhat 7.3 on my desktop at work and was wondering whether I can set up my mail in KDE(Kmail, Mozilla Mail etc) to connect to a microsoft exchange server. Thanks for any help! (2 Replies)
Discussion started by: camerja1
2 Replies
Login or Register to Ask a Question