1831408 Members
3085 Online
110025 Solutions
New Discussion

Time Synchronization

 
Anu Lanka
Occasional Contributor

Time Synchronization

Is it necessary to adjust the clock in HP_UX 11.0 by adding the environment variable TZ = pacificnew in "/etc/default/init", "Server clock llnl.gov " line in "/etc/ntp/ntp.conf" and installing the most recent version of time zone text files from public domain time zone database?
Thanks in advance for any help provided.
4 REPLIES 4
David Burgess
Esteemed Contributor

Re: Time Synchronization

To set the timezone use set_parms. You will need to reboot.

set_parms timezone

The ntp server will give the time in UTC. universal coordinated time. The timezone your server is set to will display the time in the correct format and will work out the offset from UTC.

HTH

Dave.
MANOJ SRIVASTAVA
Honored Contributor

Re: Time Synchronization

Hi Anu

I understand from your question as you are trying to achive 2 things :

1. Set your local mahcine time , as per the previous reply set_params timezone will set it permanently but u need to reboot the machine.
You can set it on the fly ie the HPUX clock by the date command.

2, The second is the syncronisation with the NTP stuff , if NTP is configured and is working then the server should be able to lew the time correctly if the difference is less than 1000 seconds , but if the differnce is more then u need to manually change the time so that the differnce reduces and you are good to go.

You need not restart the NTP damenon in the first case after you ahve adjusted the time as it will correct itlsef if it is running , incase you are rebooting the machine then the NTP daemon will restart too.


Manoj Srivastava
Sachin Patel
Honored Contributor

Re: Time Synchronization

Hi Anu,
If you don't know the format of date command you can change time throuh sam. Remember setting clock so far backward and not rebooting system is not a good idea. I have change time of server couple time but it was off couple minutes only.

For ntp when you restart the ntp daemon same time if you watch the syslog file (tail -f /var/adm/syslog/syslog.log) then it will tell you whether you need to set your time manually or not.

Sachin
Is photography a hobby or another way to spend $
Ed Sampson
Frequent Advisor

Re: Time Synchronization

You can also set the timezone in /etc/TIMEZONE, then reboot. This is the same as running set_parms timezone. I'm not familar with pacific new. Is this a special time zone?