NTP server name and ip details on Linux/Solaris


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users NTP server name and ip details on Linux/Solaris
# 1  
Old 05-12-2013
NTP server name and ip details on Linux/Solaris

Hi All,
Where can I find all the NTP server names/ip addresses on Linux/Solaris systems. How can I grep these names/IP address from specific files from a specific OS (Linux/Solaris).
I know on linux /etc/ntp.conf and /etc/ntp/ntp.conf on solaris contains these details. Whether I am right about these files or which other files can contain these details.?

Thanks in advance for your valuable inputs.
# 2  
Old 05-13-2013
Usually, you ntp off the nearer gov sites like USNO, or a corporate or site standard that chains back to same. Is your dilemma how to configure a client to listen, or how to configure server to listen to his master sources and serve clients? Often a firewall does this function, as it is on the Internet and can hit gov servers and provide time to the inside.
# 3  
Old 05-14-2013
Hi,
Say if the NTP is configured on a system, how can I fetch the ntp server and IP address from any system conf file? Is there any hostname gievn to the ntp server along with the IP address?
I am not worried about how the server/client is configured. I just want if ntp is set up on a system, how to get the ntp server name and ip address.

thanks for your reply.
# 4  
Old 05-14-2013
NTP servers come in many forms, but usually the configuration can be read. If configured with IP, do an nslookup to see if it reverses. I cannot say whether name or IP is more reliable, but usually a name is used, so there can be multiple IP supporting the name. If you do not have infrastructure guys to tell you what the internal NTP is, you may need to use an Internet one. My ntp is xntpd, and the default config is /etc/ntp.conf, but I cannot open it. However, 'ntpq -dp -ccooked' shows me three time servers! My windows internet time has an amazing huge list of servers, protocols.

A system that gets time, but does not serve time to the network, is a client. It just needs a server or two to call periodically to keep the clock in sync.
# 5  
Old 05-14-2013
Quote:
Originally Posted by sanzee007
Hi,
I just want if ntp is set up on a system, how to get the ntp server name and ip address.
One approach would be to parse the ntp.conf file. Typically you will have more than one FQDN or IPv4/v6 address there. A problem with this approach is that if ntp.conf points to a NTP pool, it is not going to tell you which time servers your system is actually using. In that case , you will have to parse the output of the ntpq command.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Ntp client sync with local over ntp server

Hi, I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local? # ntpq -p ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies

2. Linux

Configure ntp server and Linux in oel 5.9

i want to configure machine1 as ntp server. this machine has oel 5.9 64 bit installed and this machine is not connected to internet neither there is any ntp server. there is another machine2 and i want to configure that as ntp client. plz do tell me that what lines do i add in /etc/ntp.conf... (0 Replies)
Discussion started by: rehantayyab82
0 Replies

3. HP-UX

Setting up NTP HP-UX clients from solaris NTP server

Hi I wonder if its possible to setup NTP clients running HP-UX o.s. from a solaris 10 NTP server? FR (3 Replies)
Discussion started by: fretagi
3 Replies

4. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies

5. UNIX for Advanced & Expert Users

configuring NTP in Solaris/Windows/Linux environment.

Can anybody please explain the below table to monitor NTP daemon status This contains many columns like remote,refid,st....various values corresponding to those columns If possible provide me any link to study about these quantities clearly. It is very much required for my project please... (3 Replies)
Discussion started by: sgand
3 Replies

6. UNIX for Dummies Questions & Answers

configuring NTP in Solaris/Windows/Linux environment.

configuring NTP in Solaris/Windows/Linux environment. Can anybody please explain the below table to monitor NTP daemon status This contains many columns like remote,refid,st....various values corresponding to those columns If possible provide me any link to study about... (1 Reply)
Discussion started by: sgand
1 Replies

7. UNIX for Advanced & Expert Users

connecting UNIX/Linux to NTP server

Hello i want to connect my solaris & Linux boxes to ntp server i used the command /usr/sbin/ntpdate -s -b -p 8 -u <NTP-IP> and added the NTP server as server in /etc/ntp.conf please help in completing the process and verifying it (1 Reply)
Discussion started by: learn82
1 Replies

8. Gentoo

connect linux to ntp server

could you please tell me how to connect a linux or Unix server to Network Time Server??? Thanx (1 Reply)
Discussion started by: alkingg
1 Replies

9. Solaris

How to configure NTP in Solaris/Windows/Linux environment...???

Hi, Can someone let me know the detail procedure for configuring NTP in Solaris/Windows/Linux environment....??? I would like to use any NTP Server on Windows Server & rest of the systems running with Solaris 10/9 & Linux be as NTP Client. All NTP Client should take the time from NTP Server... (8 Replies)
Discussion started by: jumadhiya
8 Replies

10. Solaris

ntp server and ntp client

All, How do you set a Solaris 9 server which received ntp updates from a ntp server to broadcast them on a local subnet. I have created a /etc/inet/ntp.conf file to receive the updates from a server on network and need to make this server become like a ntp relay from the main server. Any... (1 Reply)
Discussion started by: bubba112557
1 Replies
Login or Register to Ask a Question