1834914 Members
2590 Online
110071 Solutions
New Discussion

NTP configuration

 
Juan Lopez_3
Occasional Contributor

NTP configuration

hi, this last sunday in Chile we change time GMT-3 and we were on GMT-4, but HP servers doesn´t change. They´re still with the older time, when I put the command

#echo $TZ
SAT4

so, then I go to /usr/lib/tztab in order to look for this TZ but there is not this SAT. How can I modify the tztab in order to make the changes without a system reboot ??

tha
7 REPLIES 7
Michael Tully
Honored Contributor

Re: NTP configuration

Basically you can edit the /usr/lib/tztab file and add your entries corresponding to the dates and times for you area. If you use AST4/ADT3 as your guide, you should be okay.
Anyone for a Mutiny ?
Michael Steele_2
Honored Contributor

Re: NTP configuration

Use :

# set_parms timezone
Support Fatherhood - Stop Family Law
Bill Hassell
Honored Contributor

Re: NTP configuration

The tztab file is consulted for every time/date equest from programsd so no reboot is required. SAT4 was probably stored in /etc/TIMEZONE (which is used to set TZ) but the value (SAT4) is not part of a standard tztab file. You need to look at the rules in tztab to see which ruleset corresponds to your local timezone. According to the man page, if SAT4 does not match anything in tztab, then an arbitrary U.S. timezone rule is in force.

It's important to make sure EVERY user has a valid $TZ value (which is why /etc/profile is used to set $TZ). The man pages for tztab will cover how to create a custom timezone for your locaion.


Bill Hassell, sysadmin
Juan Lopez_3
Occasional Contributor

Re: NTP configuration

Thanks for the answers, but now I need to change the actual TZ, what are your recommendations, because I have some charging process in 1 of the servers.

I already change it with TZ=SAT3 and export TZ but after a while it goes again to SAT4, anyway I have a NTP server(correct hour) connected for synchronization to his servers but they´re not getting the timezone only minutes and seconds.

Also, is there some documentation about the TZ description in the tztab file ??, I mean not man pages, something that can say that Chile belongs to some of the TZ inside.

thanks in advanc
Scrivano
Contributor

Re: NTP configuration

Don`t care about the firs 3 caracters (SAT). They`re just for your reference. What counts is the number after them, which indicates what timezone you are according to GMT.
So xyz3 = SAT3 = CHI3...

Set it up on tztab, /etc/TIMEZONE and $TZ, and you`re done.

At,
Scrivano
Michael Steele_2
Honored Contributor

Re: NTP configuration

Gee, if you run 'set_parms timezone' you'll be given a choise of all the world wide options.

This really is the preferred way and how HP intended system time and the TZ enviroment variable to be assigned.

For example:

EST5EDT = Eastern Standard Time, 5 hours behind GMT, Eastern Daylight Time.

EST5 = Eastern Standard Time, 5 hours behind GMT,


timezone Allows the user to select a timezone based on the country of location. Also allows setting a user-supplied timezone. The system will need to be rebooted for a change to take effect.

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3921-90010/B3921-90010_top.html&con=/hpux/onlinedocs/B3921-90010/00/07/773-con.html&toc=/hpux/onlinedocs/B3921-90010/00/07/773-toc.html&searchterms=timezone%7cset_parms&queryid=20031015-080749
Support Fatherhood - Stop Family Law
Bill Hassell
Honored Contributor

Re: NTP configuration

You have a more basic problem. The contents of the variable TZ is setup when you login in a normal manner (modem, telnet, console) and this is done through /etc/profile. /etc/profile simply reads /etc/TIMEZONE. If /etc/TIMEZONE does not have SAT4 in it, then you have something else (start scripts, .profile, etc) that is changing TZ and that is your problem with TZ. The rules for TZ and Chile (like any other timezone) are not defined in the man pages because these are political boundaries, not something that remains constant. Your county's government defines the timezone (or multiple timezones)and the rules for daylight saving time. It appears that Chile is -4 hours (standard time), -3 hours for daylight saving time, and the changes occur on the first Sunday after March 8 and October 8 (some confusion here...another reference says March 9 and October 9). You can create your own country's timezone in tztab. The man page for tztab and the comments in tztab will walk you through the details.

Here is a great reference for worldwide timezone rules: http://www.weltzeituhr.com/laender/zeitzonen_e.shtml

But you first must correct the problem that changes $TZ to SAT4.


Bill Hassell, sysadmin