Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hwclock on aix?

Status
Not open for further replies.

7280

MIS
Apr 29, 2003
331
IT
Hi,
what's the corresponding command of linux hwclock on aix?

Thanks,
Tarek
 
date

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Thanks Mike but no, date show system time. Hardware clock might be different.
 
What function do you need to do with hwclock? date can also set the date and time see man date.

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Hi,
I know I can set date with date command.
My system date is ok. Date shows correct time.
But I'm afraid that hardware clock is wrong.

On linux also there's date command. For example on my system
date was ok, but hardware clock was wrong.
Tjehhen
Here's the output:

[root@bw-test scripts]# date
Thu Nov 2 15:47:33 CET 2006
[root@bw-test scripts]# hwclock
Thu 02 Nov 2006 04:47:17 PM CET -0.315674 seconds
[root@bw-test scripts]# hwclock --systohc
[root@bw-test scripts]# hwclock
Thu 02 Nov 2006 03:47:43 PM CET -0.483772 seconds
[root@bw-test scripts]# date
Thu Nov 2 15:47:43 CET 2006
 
good question.
the hardware clock on aix can "only" be set from the service processor menus, you might be able to do it on a p5 machine from the ASMI interface while the system is up.
i wonder what happens when you set the "date" from AIX, given the locale offset, does it actually change the hardware clock when you change the time or "date" in AIX?
as far as i remember AIX only reads the hardware clock on boot, then it keeps track of the time by counting the cpu clock cycles.
there are some firmware fixes (and possibly apars) for power 4 machines that had problems with the time drifting.
 
Hi,
I use HMC to connect to the systems.
Can I see the hardware clock from there?

I'm getting crazy to understand why fils have time different on local and remote server.
Remote server is an ftp server with linux. On that system hwclock and date are the same.
On local system, aix, the date is the same as ftp server (so linux).
When I ftp from aix to linux I see that when issuing ls files show different time. Aix is one hour back and I'm not understanding why.
Any ideas?

Thanks,
Tarek
 
It could be the TZ variable is not set for the ftpd on AIX.

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Or perhaps the TZ variable was altered without rebooting to reflect this change for all the daemons that are started at boot time...

HTH,

p5wizard
 
ftpd is running on linux, aix is the client.
Do I have to set TZ variable in linux env?

Thanks again.
 
Just make sure both TZ match

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top