LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 09-21-2009, 10:29 AM   #1
shatztal
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Rep: Reputation: 0
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?
 
Old 09-21-2009, 12:20 PM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 682

Rep: Reputation: 63
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)
 
Old 09-22-2009, 04:20 AM   #3
shatztal
LQ Newbie
 
Registered: Sep 2009
Posts: 4

Original Poster
Rep: Reputation: 0
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?
 
Old 10-14-2009, 10:22 AM   #4
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
timezone package will automagically do this for you if it is a current version.
 
Old 10-14-2009, 03:51 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by shatztal View Post
about hte TIMEZONE file it is alredy like you said , but still i need to automate the time shiting to make the change.
As already stated, there is nothing else to do. Time changes happen when they do according to the timezone setting. This is unrelated to NTP. The TIMEZONE file is read at reboot so you need to reboot for its setting to be applied, or simply set the TZ variable in your shell to check it.
Quote:
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?
You need to create the /etc/inet/ntp.conf file.

Last edited by jlliagre; 10-14-2009 at 03:52 PM.
 
  


Reply

Tags
daylight, ntp, saving, time


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I adjust the time of my system with daylight saving time in effect? awmian Linux - Newbie 3 09-04-2008 09:57 AM
NTP and Daylight Savings Time jrdioko Linux - Software 8 11-01-2005 10:25 AM
Doub about `net time set` and daylight saving time Thakowbbery Linux - Software 0 10-17-2005 06:23 AM
DO NOT use Daylight Saving Time - how? EcceVery Debian 4 05-28-2005 03:21 PM
How to un-config automatic Daylight Saving Time? davi_cabral Linux - General 2 10-13-2004 03:57 PM


All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration