• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1095
  • Last Modified:

NTP Server

Hi experts,

At my work place there is NTP server which is running on SuSe. and it was configured by elder guy!
the problem is when i setup ntp client on one server to it ,the result is one hour ahead...

why?
and on NTP Server where could i see TZ variable which is already set on this server ? how to change it?
and how to show and enable\disable daylight saving on SuSe?

my timezone is +3 and daylight-saving
0
ikhmer
Asked:
ikhmer
  • 6
  • 6
  • 5
2 Solutions
 
ircpamanagerCommented:
are both time zones the same on client and server?
0
 
Kerem ERSOYPresidentCommented:
It seems that your time zomes are different.

Timezone is generalley set as linking an appropriate file to /etc/localtime. Thus if you want to change it you can:

cd /etc
ln -sf /usr/share/zoneinfo/EET localtime

or

cd /etc
ln -sf /usr/share/zoneinfo/Europe/Istanbul localtime

For displayin or seeing if it is modfied just issue :
date

the outut will be similar to this:
Mon Nov 20 20:40:17 EET 2006

Notice the time zone here is displayed as EET

Please be sure that bıoth systems are at the same timezone with date. Then make the necessary conversiion with ls and date again to see if everything is in order.

Cheers,
K
0
 
ikhmerAuthor Commented:
thank for your comment! and what is command to listing for time zone ? i want to verify if both client & server are the same timezone or not!

thanks,
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
Kerem ERSOYPresidentCommented:
as I told you earlier

> For displayin or seeing if it is modfied just issue :
> date
>
> the outut will be similar to this:
> Mon Nov 20 20:40:17 EET 2006

> Notice the time zone here is displayed as EET

When you issue date the timezone is displayed between seconds and year (EET) in the example above. Just issue date in both systems and see if they display the same time zone.


0
 
ikhmerAuthor Commented:
sorry for my late response! cause i just back from short holiday!

well, i'm afraid you don't get my point yet! my idea is that before i going to modify i need to know what is the existing time zone (value of variable tz?)
if i use date command i will get the same as what u show me.. in this case how can i see tz value???

thanks,

0
 
Kerem ERSOYPresidentCommented:
In fact you are the one missing my point. As I told you when you issue the date command it will show you your timezone as I indicated. There's no other way to display it. In the date output the system shows the timezone between date and time. OK ?

The output such as this:
Mon Nov 20 20:40:17 EET 2006

shows the timezone as EET on the above ezample and EET means GMT+2
0
 
ircpamanagerCommented:
do both machines have X windows on them. If they do you can set the date and time, including timezone from the clock in the taskbar. Right click on clock and pick adjust date/time and choose the apropriate timezone. Also you can look at the bios of each machine and make sure both machines HW clock are same.

"i need to know what is the existing time zone (value of variable tz?)
if i use date command i will get the same as what u show me.. in this case how can i see tz value???"

not really sure what you mean? if you use the date command like KeremE said you will see the tz. This is what mine looks like.
Thu Nov 30 08:20:04 EST 2006
The EST is eastern standard timezone.
0
 
ircpamanagerCommented:
0
 
ikhmerAuthor Commented:
in Solaris i can see or modify in /etc/TIMEZONE
it look like :

TZ=GMT-3
CMASK=022
LANG=C
/etc/TIMEZONE (END)

that why i think it could be any command  or file that i could modify it! sorry for missunderstanding!

Well, my server is : Thu Nov 30 16:23:35 EET 2006 ==> that mean GMT+2
so, what is the indicator for "GMT+3" or "GMT-3" ????

thanks,
0
 
ircpamanagerCommented:
try looking in /etc/sysconfig/clock  also look under /usr/share/zoneinfo
0
 
Kerem ERSOYPresidentCommented:
I understand that you would expect something like Solaris. But It is not that way here all you have is :
- date command showing the time zone and you can then compare it   and then to see it you would visit the wikipedia page: http://en.wikipedia.org/wiki/List_of_tz_zones to see whether it s GMT+2 or something else etc.
- Another way is to view the Continent/City by cat /wetc/sysconfig/clock
- To view it graphically you would start X and display timezne you will see the the place selected as time graphically over the map.

Unfortunately thre's no environment variable in linux

0
 
Kerem ERSOYPresidentCommented:
Your /etc/sysconfig/clock must be something like:

ZONE="Asia/Riyadh"
UTC=false
ARC=false

in both systems.
0
 
ikhmerAuthor Commented:
Now, i already change zone in /etc/sysconfig/clock of both systems , but from ntp client still got one hour difference!
and i also restart ntpd, xntpd! what service should i restart without reboot system???

and here is clock and hw clock which i issue command on ntp server!
# date
Sat Dec  2 10:25:14 EET 2006

# clock
Sat Dec  2 09:25:17 2006  -0.914988 seconds

it seem not effect ! still show EET as the result
0
 
ircpamanagerCommented:
out of curiosity, on the ntp server where is the ntp server getting it's time?
0
 
ikhmerAuthor Commented:
it get from localhost itself!!!

anyway, it work after i restart server!
0
 
ircpamanagerCommented:
so your problem is solved?
0
 
Kerem ERSOYPresidentCommented:
Hi,

But there's something fishy here. First of all EET is GMT+2 not GMT+3.

Then it is strange that it was not in operation before you shutdown.

Cheers,
K.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now