Operating System - HP-UX
1833172 Members
2917 Online
110051 Solutions
New Discussion

Re: date is changing !!!!

 
Elias Abboud
Honored Contributor

date is changing !!!!

hi everyone,

I am having a weird problem. my system is an a400 server/hpux 11.00 . the date started changing on its own. this happened after I have changed the systemboard. To try to resolve this issue i replaced the system board battery with a new one thinking this might be the problem. The system does not shutdown since it is an online system so the battery should not have any effect on the system date.

can anyone help????

any help or hint will be greatly appreciated.
thanks in advance.
If you can't solve it, post it :)
16 REPLIES 16
Patrick Wallek
Honored Contributor

Re: date is changing !!!!

How much is the date changing? Is it the actual day of the month? Or just the time? How often does this happen?
Chris Wilshaw
Honored Contributor

Re: date is changing !!!!

When you say the date is changing on its own, do you mean that the server is repeatedly resetting itself to the same date, or that the internal clock seems to be running too quickly, and is advancing the date?
RAC_1
Honored Contributor

Re: date is changing !!!!

/etc/set_params date

It should not chnage afterwards. What makes you think that the date is changing?? Ot is it just the TZ settings??

Anil
There is no substitute to HARDWORK
Michael_356
Frequent Advisor

Re: date is changing !!!!

Hi there,

what do you mean with:
"date is changing"?
normally date is changed once a day.

If you mean your appearance of the date and time string, check your local settings with locale.

regards

Michael
V. Nyga
Honored Contributor

Re: date is changing !!!!

Hi,

have you checked if a cron job is defined?
Or is time zone changing?

Volkmar
*** Say 'Thanks' with Kudos ***
Chris Vail
Honored Contributor

Re: date is changing !!!!

As a rule, a $5 watch keeps better time than a $50,000 computer. The on-board clocks are notoriously unreliable. The Network Time Protocol was developed specifically to deal with this issue. You can setup NTP through SAM, but you need an external source of time information (an internet connection will do fine).

This is covered in chapter 35 of Rafeeq Ur Rehman's book _HP Certified_. I highly recommend it.
Mark Greene_1
Honored Contributor

Re: date is changing !!!!

Given that you have changed the system board, it is possible that the new board has a bad clock. Are you running ntp on the system? If so, what sort of errors are you seeing in the syslog about it?

mark
the future will be a lot like now, only later
John Waller
Esteemed Contributor

Re: date is changing !!!!

If when you talk about date you are meaning the time, we had a similar problem on an A400 after a system board change and it turned out to be a dip switch set to the wrong position. I think we were taling about 5 minutes per hour drift.
Elias Abboud
Honored Contributor

Re: date is changing !!!!

hi everyone,

what i mean is that every couple of hours i take a look at the time of the server i find it late by about 4 hours.

any help?
If you can't solve it, post it :)
Elias Abboud
Honored Contributor

Re: date is changing !!!!

thanks for ur reply,

where can i find the meaning of the dip switch on the system board? and to what should i set them. Can you send me a document explaining the meaning of each setting for the dip switch? maybe this really is the problem....

thanks in advance
If you can't solve it, post it :)
Peter Godron
Honored Contributor

Re: date is changing !!!!

Elias,
if the system clock is so badly out, I would suspect either a faulty clock or a cron job.
Best thing to do would be to print a message every 10 minutes and time the delay. That way you know whether it is a slow growth (clock) or a one-off hit (cron)
Regards
Peter Godron
Honored Contributor

Re: date is changing !!!!

Elias,
after you reset the time does the difference stay the same i.e. Is the system time slowing or is the difference static.
Please see threads:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=136748
and
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=114243
Regards
Bill Hassell
Honored Contributor

Re: date is changing !!!!

If it is exactly 4hours, the date is probably not changing at all. Your $TZ variable controls the display of GMT (which is what HP-UX runs). To see GMT time/date:

TZ=GMT0 date

To see the date in US Pacific timezone:

TZ=PST8PDT date

which is 8 hours less than GMT. If the date slowly changes (a few minutes at a time) then you likely have a hardware problem. But if it jumps by hours, it is very likely the TZ variable which is automatically set with 'normal' logins in /etc/profile and configured by the file: /etc/TIMEZONE.


Bill Hassell, sysadmin
HGN
Honored Contributor

Re: date is changing !!!!

Hi Elias

If the system clock is getting out of sync and if there is no cron job then it should be with the system board. Make sure there is nothing on the cron table to eliminate the suspicion. Also make sure that the ntp is running and getting to sync with a server.

Rgds

HGN
A. Clay Stephenson
Acclaimed Contributor

Re: date is changing !!!!

There was also a firmware patch for the A boxes that corrected drifting clocks. You should update to the latest firmware as a matter of course.
If it ain't broke, I can fix that.
John Waller
Esteemed Contributor

Re: date is changing !!!!

Elias,
Sorry can't help you with the dip switches. The server was on an HP support contract and an engineer came out and changed it. I believe it was related to the clock speed and I think it was set to 60Mhz and no 50Mhz but this was March 2004 and I've had plently of late nights since then.