1833582 Members
4714 Online
110061 Solutions
New Discussion

HP-Ux time has changed

 
Shehan
Super Advisor

HP-Ux time has changed

Hi All
We are having rp4440 server with hp-ux 11.11 v1. time of the operating system has been changed automatically. Can it be happened automatically?


Regards
Nirukshitha

11 REPLIES 11
Jeeshan
Honored Contributor

Re: HP-Ux time has changed

Hi

How often the time is changing?
Did you set NTP?
Did you set time zone?
a warrior never quits
Shehan
Super Advisor

Re: HP-Ux time has changed

We saw this yesterday. At that time, we saw only one hour difference. But it 11 hour difference.

In addition to that we didn't do any changes in the server.

Anyway,While this is examined, can we know whether we can change the current time in to correct time while oracle is running.

Regards
Nirukshitha
Johnny Damtoft
Regular Advisor

Re: HP-Ux time has changed

Ref. url:
http://www.knowledgeroot.dk/hp-ux/general-hp-ux/how-to-enable-ntpxntpd-on-hp-ux/

It seems that you have a problem with the ntp server that's giving out the time.

Another problem, could be change of timezone. Make sure that you are using the correct timezone and reconfigure it all to make sure.

# vi /etc/TIMEZONE
TZ=MET-1METDST
export TZ

# vi /etc/ntp.conf
server your.timeserver.com version 3 prefer

# vi /etc/rc.config.d/netdaemons
export XNTPD=1


-- Johnny Damtoft
Shehan
Super Advisor

Re: HP-Ux time has changed

Can we do this in a live system? or else do we need to take it into single user mode.


Regards
Nirukshitha
Jeeshan
Honored Contributor

Re: HP-Ux time has changed

no, you need not go to single user mode to change the Time zone. biut you need reboot to change effect.
a warrior never quits
Dennis Handly
Acclaimed Contributor

Re: HP-Ux time has changed

Do you have the right TZ settings?
What does this show:
date; date -u
Dave Johnson_1
Super Advisor

Re: HP-Ux time has changed

Did you apply the TZ patch when the dates for start/end of daylight savings time in the US changed last year?
Yogeswar
Frequent Advisor

Re: HP-Ux time has changed

set_parms timezone

Select a timezone based on your country of location.Also allows you to set a user-supplied timezone.
The system must be rebooted for any change to take effect.

set_parms date_time

Set the system date and time interactively: This is similar to calling date as a privileged user but without having to format a time specification. The change takes effect immediately.
Shehan
Super Advisor

Re: HP-Ux time has changed

Hi All

I am in GMT+6 time zone. How do I change server time into GMT+6. Also once we set GMT+6 , what does it give from "date -u " command

Regards
Nirukshitha
Yogeeraj_1
Honored Contributor

Re: HP-Ux time has changed

>I am in GMT+6 time zone. How do I change server time into GMT+6. Also once we set GMT+6 , what does it give from "date -u " command


your /etc/TIMEZONE should show the following:
SRV2:etc>cat TIMEZONE
TZ=GMT-6
export TZ


And when you run the "date" and "date -u" the following should be displayed:
SRV2:etc>date
Fri May 2 08:14:15 MRU 2008
SRV2:etc>date -u
Fri May 2 02:14:18 UTC 2008
SRV2:etc>


hope this helps!

kind regards
yogeeraj

No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: HP-Ux time has changed

hi again Nirukshitha,

is this is production system, you may wish to shutdown your databases and applications before making the changes.

when you finish making the changes, a reboot would ensure that everything has been properly setup.

good luck!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)