How to config the Time Sync automatic with Daylight Saving and NTP
Hello,
I have SUNOS 5.10, I want that the time Shifting in Winter AND Summer will change Automaticlly. in HPUX i can config it in the /ETC/TIMEZONE and /usr/lib/tztab files. in sun OS i don't know where and how? also to change that the Server will always get the time from an NTP Server that i specify him? how do i do it? |
It's similar in Solaris. Look at /etc/default/init (you may have a link from /etc/TIMEZONE to /etc/default/init.)
You ought to have an entry something like: TZ=US/Mountain the TZ you choose should have a timezone data file in /usr/share/lib/zoneinfo (so in my example it would be in /usr/share/lib/zoneinfo/US/Mountain) I believe you will need to reboot after configuring it. For NTP just edit /etc/inet/ntp.conf and put in your server and make sure it's enabled for start up. (svcadm enable ntp) |
about hte TIMEZONE file it is alredy like you said , but still i need to automate the time shiting to make the change.
in HPUX in the TZTAB file i can write to change the time zone in a particular time and date so it will happend automaticlly when the whole country is changing the time. how can i make it? also the NTP file you said is a little wrong cause i looked and found ntp.client and ntp.server files. i didn't understand how to change them and to where to ponit to? |
timezone package will automagically do this for you if it is a current version.
|
Quote:
Quote:
|
All times are GMT -5. The time now is 08:16 PM. |