1833824 Members
2487 Online
110063 Solutions
New Discussion

Re: DST patch problem

 
Joe Robinson_2
Super Advisor

DST patch problem

Patch was applied on 9 March; when I came in this morning date (time) had not changed.

Looked over other emails but am not seeing anything glaring; this is HPUX 11.11.

17 REPLIES 17
Pete Randall
Outstanding Contributor

Re: DST patch problem

Joe,

Can you post the relative contents of your tztab file (just your time zone).

For me, in EST/EDT, it looks like this:

# US DST changes for EST5EDT.

# Eastern Standard Time, Eastern Daylight Time
EST5EDT
0 3 24-30 4 1970-1973 0 EDT4
0 3 6 1 1974 0-6 EDT4
0 3 22-28 2 1975 0 EDT4
0 3 24-30 4 1976-1986 0 EDT4
0 3 1-7 4 1987-2006 0 EDT4
0 3 8-14 3 2007-2038 0 EDT4
0 1 25-31 10 1970-1973 0 EST5
0 1 24-30 11 1974 0 EST5
0 1 25-31 10 1975-2006 0 EST5
0 1 1-7 11 2007-2038 0 EST5


Pete

Pete
Pete Randall
Outstanding Contributor

Re: DST patch problem

Sorry, meant to say relevant, not relative.

Pete
Joe Robinson_2
Super Advisor

Re: DST patch problem

# Pacific Standard Time, Pacific Daylight Time
PST8PDT
0 3 24-30 4 1970-1973 0 PDT7
0 3 6 1 1974 0-6 PDT7
0 3 22-28 2 1975 0 PDT7
0 3 24-30 4 1976-1986 0 PDT7
0 3 1-7 4 1987-2038 0 PDT7
0 1 25-31 10 1970-1973 0 PST8
0 1 24-30 11 1974 0 PST8
0 1 25-31 10 1975-2038 0 PST8
Ludovic Derlyn
Esteemed Contributor

Re: DST patch problem

hi,

Just a precision, when you apply this patch , if tztab has been modified , patch didn't replace existing, but copy new tztab in /usr/lib/contrib/tztab

You must edit it and move to /usr/lib

Last remark, you must stop ansd restart all applications for initialise new tztab

In my cases, i have rebooted my servers by precaution.

Regards
L-DERLYN
Joe Robinson_2
Super Advisor

Re: DST patch problem

file didn't exist.
Joe Robinson_2
Super Advisor

Re: DST patch problem

file didn't exist./usr/lib/contrib/tztab
Patrick Wallek
Honored Contributor

Re: DST patch problem

Check in /usr/newconfic/usr/lib/tztab for a new tztab file.
Bill Hassell
Honored Contributor

Re: DST patch problem

Since tztab does not have 2007 as a year in your file, the patch was not applied. Check you swinstall logs for errors. Also check that the patch has even been recorded in the installed software list using swlist.

DO NOT CHANGE the system time! Doing so will break NTP (if you are using it) and will break other timezones and DST rules. HP-UX only knows one time and that is UTC or GMT/Zulu time, no DST adjustment is ever done in the OS. Instead, the system libraries that return the time of day consult the current value for TZ and look in tztab for a match and a rule, then translate the time accordingly. When you decide to patch your system, be sure to shutdown your applications and databases and reboot. This will ensure that system libraries, crontab and other daemons will see the new tztab rule in case they cache them in RAM.


Bill Hassell, sysadmin
Geoff Wild
Honored Contributor

Re: DST patch problem

Are one of the following installed?

swlist -l patch |grep -i PHCO_35989

or

swlist -l patch |grep -i PHCO_34668


See the following for more info on DST:

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c00832124

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ludovic Derlyn
Esteemed Contributor

Re: DST patch problem

hi

sorry good path is /usr/newconfig/usr/lib

regards

L-DERLYN
Steven E. Protter
Exalted Contributor

Re: DST patch problem

Shalom,

Is it going to do any good to now install the patch? I'm sitting in the US know and am certain the clocks have changed. I would think after applying to patch to cover NEXT years change, it may be necessary to manually adjust system time, since it appears the DST patch is NOT on this system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Joe Robinson_2
Super Advisor

Re: DST patch problem

after putting new file in place, system not booting, not doing self tests...ideas/
Joe Robinson_2
Super Advisor

Re: DST patch problem

had to reset GSP, system booted, but time now off approx 2.5 hours. What is the correct mechanism to verify patches/time are in sync?
Pete Randall
Outstanding Contributor

Re: DST patch problem

Steve,

The clocks haven't changed - not the system clocks on an HP-UX system, anyway. The way the time is displayed is what changes.

In fact, I found one system this morning that had not been patched (if I find the person that missed one, I'm going to have to have a long talk with him - oh, wait, I'm the only SA here . . .). I applied the patch at roughly 6:00 AM EDT, and running the date command before and after showed 5:00 AM EST at first and then 6:00 AM EDT after.


Pete

Pete
Joe Robinson_2
Super Advisor

Re: DST patch problem

GRRR.

After having loaded the DST Patch provided by higher headquarters, I now find that none of the patches you've all been so kind to list are on my system.

Do I need to load them now?

What is the preferred way of correcting the date at this point in the game?

Thanks again!
Joe Robinson_2
Super Advisor

Re: DST patch problem

PHCO_36097 was installed. Although I do realize that PHCO_35989 was available, I went with 'tried and true'...
Geoff Wild
Honored Contributor

Re: DST patch problem

You need the patch installed - else your clock will change again in April!

Now that it is after the fact, use either the ntpdate command (if you are using ntp) or the date command to set your clock.

Also, to verify the dates that the closks change, download and run the dst.pl script from Clay:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1007176


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.