NTP configuraiton


 
Thread Tools Search this Thread
Operating Systems Solaris NTP configuraiton
# 1  
Old 02-26-2008
NTP configuraiton

im trying to set up ntp on Solaris 10.. I have two ntp servers, which i put in /etc/inet/ntp.conf as

server ntp-server1
server ntp-server2

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

--------

i did sudo svcadm enable ntp

online 14:15:02 svc:/network/ntp:default

----------

so what i want is for the sytem date to be thier local time, but issuing 'date' tells ms:

ossserver[user1]/var/ntp/ntpstats% date
Tue Feb 26 13:36:54 EST 2008

which is US time. Their server is not in the US.

------------

ntpq -p gives:

remote refid st t when poll reach delay offset disp
==============================================================================
*ntp-server1 145.24.129.6 3 u 38 64 377 1.34 -1.887 0.17
ntp-server2 0.0.0.0 16 u 230 1024 0 0.00 0.000 16000.0

And,

ntptrace gives:

ossserver[user1]/var/ntp/ntpstats% ntptrace
localhost: stratum 4, offset 0.000032, synch distance 0.15501
ntp-server1: stratum 3, offset -0.002185, synch distance 0.14456
145.24.129.6: *Timeout*

Which I believe is telling me that the master server where their ntp servers are getting time from are not reachable. Is this correct? What else can I use to verify?
# 2  
Old 02-27-2008
a couple of things

running UNIX date command
your systems Timezone has nothing to do with NTP.
you need to properly set your timezone in either
/etc/TIMEZONE
/etc/default/init

NTP has no concept of a timezone, etc. reference
HTML Code:
http://www.cis.udel.edu/~mills/y2k.html
ntpq -c readvar |grep clock
clock=cb6eff48.b71d8000 Tue, Feb 26 2008 16:12:40.715, phase=-34.613,

the clock variable is the systems NTP time, the month, day, year, time, etc is derived from this plus taking your systems timezone setting into account.

your ntptrace might be being blocked, but actually working, not unusual.
from any system you can use nptq -p not only for that system but for any remote system:
example: from any system the following should work.

ntpq -p ntp-server1
ntpq -p ntp-server2
ntpq -c readvar ntp-server1

times from both ntp servers should be very close "+- 20-30 ms". if not something is not functioning correctly.

check these website, might be of some help:
HTML Code:
http://support.ntp.org/bin/view/Support/TroubleshootingNTP
HTML Code:
http://www.eecis.udel.edu/~ntp/ntpfaq/NTP-s-trouble.htm
also helpful to setup each of your local ntp servers a peer to the other
in ntp.conf
peer ntp-server1 ## on ntp-server2
peer ntp-server2 ## on ntp-server1
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. Solaris

NTP loop

we have two servers that need to be in sync. is it safe to add each other as NTP server, (besides others)? (or would that create some kind of NTP loop?) thanks. (6 Replies)
Discussion started by: orange47
6 Replies

3. AIX

NTP in HACMP

How do i configure NTP in HACMP AIX OS 6.1. Is it enough to configure ntp both machine seperatly or any other way to do the configuartion. Please suggets me. (1 Reply)
Discussion started by: sunnybee
1 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. 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

6. UNIX for Dummies Questions & Answers

Ntp Error

Hi everybody. I'm not sure where to post this, so I hope here is OK. I have 4 name servers and on one of the slaves, my log files are filling up with this error: ntpd: sendto() (fd=20): Invalid argument It is always the same IP, and only on this name server. A quick google revealed that the... (1 Reply)
Discussion started by: Gumball Dad
1 Replies

7. Solaris

Ntp

Hello I use Solaris 10 and I have NTP packages arlrady installed pkginfo | grep -i ntp system SUNWntpr NTP, (Root) system SUNWntpu NTP, (Usr) How to configure NTP? thanks (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

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

9. IP Networking

Ntp

How can I install ntp on AIX (4.3-5.1) ? thnx (1 Reply)
Discussion started by: Gismo
1 Replies

10. UNIX for Advanced & Expert Users

NTP and 11.i .....

Hi there! Does anybody know if HP-UX 11.i supports NTP? If yes, what version on NTP should be used? Thanx (1 Reply)
Discussion started by: penguin-friend
1 Replies
Login or Register to Ask a Question