1837984 Members
2904 Online
110124 Solutions
New Discussion

time problem

 
Amit Dixit_2
Regular Advisor

time problem

Hi,
I am having 2 server running HP-UX.
Problem I am having is there is an entry in
cronjob to run a script at 2:00 AM on both
the servers but on one server i am getting
time-diff of 2 hours and on another 3 hours
why is it so ??
but the server are having same time as they
are configured to same NTP server.

please check the following.

machine1:/home/sc $grep EET /usr/lib/tztab
EET-2EETDST
0 4 25-31 3 1981-2038 0 EETDST-3
0 3 25-31 10 1981-2038 0 EET-2


machine2:/home/sc $grep EET /usr/lib/tztab
EET-2EETDST
0 4 25-31 3 1981-2038 0 EETDST-3
0 3 24-30 9 1981-1995 0 EET-2
0 3 25-31 10 1996-2038 0 EET-2

will the above entries in the tztab make any difference ?

Thanks,
Amit
9 REPLIES 9
Robert-Jan Goossens
Honored Contributor

Re: time problem

Hi Amit,

Could you check below on your servers for the same user.

# whoami
root
# echo $TZ
MET-1METDST
# date
Mon Sep 27 11:14:17 METDST 2004

Regarsd,
Robert-Jan
Peter Leddy_1
Esteemed Contributor

Re: time problem

Hi Amit,

What does the script do? Look for something that would cause the second server to run the script for longer.

HTH,

Peter
Eric Antunes
Honored Contributor

Re: time problem

Hi,

In my system I have for you TZ:

EET-2EETDST
0 4 25-31 3 1981-2038 0 EETDST-3
0 3 24-30 9 1981-1995 0 EET-2
0 3 25-31 10 1996-2038 0 EET-2

But my TZ is not this one, it's PWT0PST...

Hope this'll help you,

Eric Antunes

Each and every day is a good day to learn.
Amit Dixit_2
Regular Advisor

Re: time problem

Hi,
Eric can you please let me know the Hp-UX
version you are running

and anyone can let me know why I am having
different output running grep for EET

Thanks,
Amit
Eric Antunes
Honored Contributor

Re: time problem

Hi Amit,

I'm on Hp-UX 11.0

May be you have different patches installed on each server?

Each and every day is a good day to learn.
Amit Dixit_2
Regular Advisor

Re: time problem

Eric,
Can please explain the difference between
the 2 tztab file I have posted why one is
having 2 entries and other having 2 with
byfercation of years from 95 and then
from 96 2038

Why is it so ??

Thanks,
Amit
Fred Ruffet
Honored Contributor

Re: time problem

Every HP machine I have gives the 3 lines result. Maybe your missing a patch on the seconf host. Verify by making a diff between the outputs of
swlist -l patch |sort
on each server.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Eric Antunes
Honored Contributor

Re: time problem

Hi,

Do as Fred said or search for uninstalled patches in machine1. One Timezone patch for HP-UX 11.0 is PHCO_27528, is this patch installed on machine1?

Eric
Each and every day is a good day to learn.
Shine_5
Frequent Advisor

Re: time problem

Hello Amit,

Rebuild system kernel with timezone of 300 for Eastern time EST5EDT
timezone 300

Once the new kernel is built, confirm timezone with the following command.

grep timezone /stand/system should show timezone of 300
timezone 300




please check this

Shine