Solved

NTP

Posted on 2004-04-04
10
585 Views
Last Modified: 2013-12-27
Well my ntp server is getting me time wrong from the remote server because of daylight saving configured on the remote machine how do  i solve te problem
0
Comment
Question by:naufal
10 Comments
 
LVL 9

Expert Comment

by:Alf666
Comment Utility
It should not :-)

This probably means that your timezone (or the NTP server's timezone) is not configured properly.

You could try another NTP server, or check your timezone config.

Check your /etc/TIMEZONE file.
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
This is almost certainly a problem with the timezone setting on your machine. NTP uses GMT to allow it to work across timezones. My guess is that your system is set for a timezone that uses Daylight Savings time.
0
 

Author Comment

by:naufal
Comment Utility
i am using pakistan standard time the output of the date command on my machine is

Mon Apr  5 00:01:21 PKST 2004
0
 
LVL 48

Expert Comment

by:Tintin
Comment Utility
What version of Solaris are you running?

Has PKST changed dates in the last few years?

Sun regularly update the timezone files when daylight savings dates change.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 9

Accepted Solution

by:
Alf666 earned 125 total points
Comment Utility
jlevie : yes. But what if the remote server (if it's a master server) stupidly changes it's time manually to respect DST ??

naufal, I suggest you try the following :

zdump (or maybe zic, I don't remember on Solaris) :

zdump -v PKST

It should show 4 lines. 2 in 1901 (epoch) and 2 in 2038.

If it's right, thern I strongly suggest you switch to another NTP server.
0
 

Author Comment

by:naufal
Comment Utility
ok there is a rule in a file /usr/lib/share/src/asia which says that daylight saving becomes active on first of april and i have checked my XP machine with the same ntp server it works fine so probabaly i wll have to comment the line ..... lets see i can't get hold of the system right now so may be after couple of hours:)
0
 

Author Comment

by:naufal
Comment Utility
ok yes guys that does the job but now the same problem is coming on my linux machine and i don't find any kind of file on that

Regards
0
 
LVL 9

Expert Comment

by:Alf666
Comment Utility
Now, on Linux, you can try the zdump trick :

First, do a date, and check for the timezone name.

Then, dump it's rules (e.g: PKST) :

zdump -v PKST

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now