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


 
Thread Tools Search this Thread
Operating Systems Solaris How to configure NTP in Solaris/Windows/Linux environment...???
# 1  
Old 02-05-2007
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 running on Windows.

Thanks & Regards,
jumadhiya.
# 2  
Old 02-05-2007
For solaris client

cp /etc/inet/ntp.client /etc/inet/ntp.conf

vi /etc/inet/ntp.conf and replace
multicastclient 224.0.1.1
with
server ip-of-your-winntp-server

Then restart ntp
Solaris9
/etc/init.d/xntpd stop
/etc/init.d/xntpd start

Solaris10
scvadm disable ntp
scvadm enable ntp

##Do not try this on a cluster. You need to shutdown the cluster when changing the cluster nodes time.
Tornado
# 3  
Old 02-05-2007
Thanks Tornado. Can you suggest me any freeware NTP Server package for Windows 2000/2003 which is more reliable to use in my production environment. I am using different models of systems running with different OS versions & also running with veritas cluster. Let me give you a brief idea of my setup;

1. Windows 2000/2003 server --- Want to use as NTP Server
2. 2 x Solaris 10 Systems (ppip1n & ppip2n) running with VCS 4.1. These 2 Servers are pointing to SMC Server running on Solaris 9 to take the date & time.
Note : I want SMC server to point the Windows NTP server to sync the date & time. pp1n & pp2n will sync the date & time from SMC server.

Please find the ntp.conf configuration from ppip1n, ppip2n & SMC systems;

ntp.conf of ppip1n
***************
ppip1n) inet > more ntp.conf
# NTP client
server 192.168.0.1
#server IP-address-of-secondary-ntp-server
server 127.127.1.0
fudge 127.127.1.0 stratum 9
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable

(ppip1n) inet > ntpq -pn
remote refid st t when poll reach delay offset disp
==============================================================================
*192.168.0.1 127.127.1.0 10 u 17 64 0 0.43 0.011 16000.0
127.127.1.0 127.127.1.0 9 l 22 64 377 0.00 0.000 10.01


ntp.conf on ppip2n
***************
(ppip2n) inet > more ntp.conf
# NTP client
server 192.168.0.1
#server IP-address-of-secondary-ntp-server
server 127.127.1.0
fudge 127.127.1.0 stratum 9
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable

(ppip2n) inet > ntpq -pn
remote refid st t when poll reach delay offset disp
==============================================================================
*192.168.0.1 127.127.1.0 10 u 51 64 0 0.29 -1.265 16000.0
127.127.1.0 127.127.1.0 9 l 37 64 377 0.00 0.000 10.01


ntp.conf of smc01
**************
(smc01)# more ntp.conf
# NTP Primary server
server 10.100.102.254
#server IP-address-of-secondary-ntp-server
server 127.127.1.0
fudge 127.127.1.0 stratum 9
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable

(smc01)# ntpq -pn
remote refid st t when poll reach delay offset disp
==============================================================================
10.100.102.254 0.0.0.0 15 u 43 64 377 0.52 -301931 0.05
*127.127.1.0 127.127.1.0 9 l 42 64 377 0.00 0.000 10.01

Note : 10.100.102.254 ---- Windows System IP (NTP Server)

Can you tell me the configuration is proper on ppip1n, ppip2n & SMC systems...???

What exactly is the stratum value & how it affects your configuration...???

Thanks & Regards,
jumadhiya
# 4  
Old 02-05-2007
Why use windows as your networks ntp server ?
Why not setup you Solaris system(smc01) as the ntp server and sync all your servers off it ?

Not sure about Veritas Cluster, But with Sun Cluster, there is ntp.cluster template file you use for ntp and we use ntp.conf.cluster , not ntp.conf

In the ntp.conf.cluster you setup your nodes as peers to sync off each other using the private interconnects and set the ntp server to your time server on your network.

This is what we use on our Sun Cluster:
Code:
server my.ntp.server
#
# One of the "peers" should be "preferred" over the others.
#
peer clusternode1-priv prefer
peer clusternode2-priv

#
# Drift file (optional)
#
driftfile /var/ntp/ntp.drift

#
# Stats (optional)
#
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable

Code:
# ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
*my.ntp.server yarrina.connect  3 u   74 1024  377     1.13   -0.392    1.94
 clusternode1-pr 0.0.0.0         16 -    - 1024    0     0.00    0.000 16000.0
+clusternode2-pr my.ntp.server  4 u  298 1024  376     0.43   -0.270   16.14
#

my.ntp.server is a Stratum 3 server, it syncs its time from our Internet providers Stratum 2 servers. Its ntp.conf looks like this:
Code:
server ntp.mel.connect.com.au
server ntp.syd.connect.com.au

broadcast 224.0.1.1 ttl 4
broadcastdelay  0.5

driftfile /etc/inet/ntp.drift

Code:
# ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
 NTP.MCAST.NET   0.0.0.0         16 -    -   64    0     0.00    0.000 16000.0
*yarrina.connect ntp.sydney.nmi.  2 u   49  128  377     3.02    0.429    0.44
+warrane.connect ntp.melbourne.n  2 u   68  128  377    19.01    0.851    0.66
#

Strata NTP servers are arranged in a hierarchy of levels, called strata. A stratum-1 server is more accurate than a stratum-2 server. There are 15 strata, but only first three are usually used.

Stratum 1 is the highest hierarchical level and those servers are directly attached to highly accurate reference sources such as atomic clocks. This is backbone of NTP and regular servers should not interface with backbone directly, but using NTP servers on lower stratums.

Stratum 2 servers tend to operate out of academic institutions and large corporations. Those can be used by "regular" Internet-connected servers but any sizable organization usually has its own "local" NTP server(s) that interfaces with Stratum 2 servers.

Below Stratum 2 you will find local NTP server that most organizations on the Internet now have. Most organization use free xntp daemon, but some prefer using appliances. Appliances often provide alternative synchronization case of lost internet connectivity using GPS.
Tornado
# 5  
Old 02-06-2007
Quote:
Originally Posted by Tornado
In the ntp.conf.cluster you setup your nodes as peers to sync off each other using the private interconnects and set the ntp server to your time server on your network.
Note of caution:

This depends on whether you are using internal syncing in the cluster or not. To keep nodes in sync with each other without using an external clock, or in addition to an external this is the way to configure. NB. All nodes should be clients of the same external server(s), you should not sync one node externally and others internally.

If using only an external ntp source all node still are configured as individual ntp clients, and would be configured towards the same ntp server(s), so ntp.conf can be used in this case. I strongly reccommend againt this, as internal custer time is much more important than "real" time, it is better to sync only internally than only externally.

Also it should be noted that you should not use two ntp servers. If using more than 1 server you should not use two, use a minimum of 3 http://www.ntp.org/ntpfaq/NTP-a-faq.htm

VCS does not provide this facility, and either an external ntp server is used.

Last edited by reborg; 02-06-2007 at 08:08 PM..
# 6  
Old 02-06-2007
Using the private interconnects and an external time server is recommended and supported by Sun. That is how our Sun Cluster nodes are configured, as is shown in the output in my previous post.

For details have a look at Sun Document 74616
Tornado
# 7  
Old 02-06-2007
Sorry Tornado, had a total intelligence blackout when I posted that. I will update with what I should have said.

The only issue I see is the use of two reference ntp servers, which is a bad idea.

PS. Can't remember my sunsolve password either, so can't read the doc but know without doing so it will be as you say.

Last edited by reborg; 02-06-2007 at 08:10 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Install and configure ntp rpm on Ubuntu 13.10 version

Hello, I am new to ubuntu Server OS and so trying to setup and ntp service on couple of servers. I see ntp rpm is not installed. # dpkg --get-selections | grep -v deinstall | grep ntp ntpdate install # so I tried to installed ntp rpm using... (5 Replies)
Discussion started by: bobby320
5 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. UNIX for Advanced & Expert Users

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... (4 Replies)
Discussion started by: sanzee007
4 Replies

4. 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

5. UNIX for Dummies Questions & Answers

Samba setup in virtual server environment Windows/ Linux

I have a home network set up that consists of a few windows clients and 3 centos, and 1 suse client. These are all virtual machines, VMware Workstation. One centos vm is set to be the Samba server. Do I need Samba set up on the other Linux clients?I have no problem seeing the windows clients... (0 Replies)
Discussion started by: ktb231
0 Replies

6. AIX

Configure one host against two ntp servers for redundancy

Dears all is it possible to have two NTP servers in one host ? how i can configure them . please advice (5 Replies)
Discussion started by: thecobra151
5 Replies

7. Solaris

Cannot configure NTP client

Hi, I am trying to configure NTP client on my Solaris server, but I am getting error like: Jan 13 10:53:33 SPOTS ntpdate: no server suitable for synchronization foundMy ntp.conf file: bash-3.00# pwd /etc/inet bash-3.00# bash-3.00# bash-3.00# cat ntp.conf # ident "@(#)ntp.client... (5 Replies)
Discussion started by: nypreH
5 Replies

8. 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

9. 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

10. Linux

How to configure linux to receive snmp traps from a windows server?

Can anybody please tell me how to configure linux to receive snmp traps from a windows server? I am not able to receieve snmp traps on unix machines specifically linux and solaris. I have tried starting snmptrapd service on linux but it didn't work. Is there anything special that I have to do on... (2 Replies)
Discussion started by: iamtulipin
2 Replies
Login or Register to Ask a Question