- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Show & Set Hardware Clock on HP-UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 01:55 AM
тАО01-29-2009 01:55 AM
I fear one of my HP-UX machine has a quite badly set/quite drifting hardware clock.
I already have NTP running with an external server, but in case of NTP fault I have a problem .....
In Linux there is a command "hwclock" which shows (hwclock --show) or sets the hardware clock with a running machine (without the need to boot). I do not find anything of that kind in HP-UX: neither "hwclock" is installed on the machine, nor I find it in the official repositories under this name.
* Does "hwclcok" exist under this name at all?
* If yes where do I find it?
* If no which is the HP-UX equivalent for it?
I would need it for: "HP Release B.11.11", "HP Release B.11.23" and "HP Release B.11.31".
Another question: on boot does HP-UX set the hardware clock=system clock or not? Where do I see/set it?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 02:12 AM
тАО01-29-2009 02:12 AM
Re: Show & Set Hardware Clock on HP-UX
It's called date(1). This sets the hardware clock too.
>Another question: on boot does HP-UX set the hardware clock=system clock or not? Where do I see/set it?
Something like that. Depending on whether you have a PA or IPF box, there are various MP/GSP commands to show and possibly set the hardware clock.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 03:36 AM
тАО01-29-2009 03:36 AM
Re: Show & Set Hardware Clock on HP-UX
date;hwclock --show
We have Itanium Boxes.
You say "there are various MP/GSP commands to show and possibly set the hardware clock". OK, that's what I am asking: which ones?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 08:26 AM
тАО01-29-2009 08:26 AM
Re: Show & Set Hardware Clock on HP-UX
On some (entry level) servers you can set the time at the boot menu, on others (mid range and high end) you can set time directly from MP.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 01:06 PM
тАО01-29-2009 01:06 PM
Re: Show & Set Hardware Clock on HP-UX
Don't worry about NTP failure. The clock will continue to run without a problem. Once the NTP server is fixed, xntpd will adjust the time to match the server. Your hardware clock will not drift more than a couple of minutes if NTP is down for several days. NTP can adjust automatically if the difference is less than about 10 minutes.
NOTE: this assumes that you are running ntpdate in cron (an old Linux trick). If you setup NTP correctly, ntpdate will be called from the xntpd start script at bootup which sets the clock.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 03:08 PM
тАО01-29-2009 03:08 PM
Re: Show & Set Hardware Clock on HP-UX
Why don't you try it and see? On some Integrity servers the clocks are synced up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2009 04:39 AM
тАО01-30-2009 04:39 AM
Re: Show & Set Hardware Clock on HP-UX
The hardware clock is the BIOS clock, and is not to mix up with the system clock. All the commands/protocols like NTP, ntpdate, date etc set/show/modify ONLY the system clock.
Normally the BIOS clock is set from the system clock at boot down time, and the system clock is set (first at least, before NTP comes in play, if it comes to play) from the BIOS clock at boot up time.
Meanwhile I came to know that the NTP localhost clock (127.127.1.1) is connected to the "system clock" and NOT the BIOS clock, such that my question is less urgent.
Anyway I still have my open question: how do I see/set the BIOS clock in HP-UX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2009 06:04 AM
тАО01-30-2009 06:04 AM
SolutionProbably true for PCs and other Intel platforms. PA-RISC and Itanium boxes have no BIOS and instead have a separate processor that handles hardware specific tests and features. Additionally, there are special hooks between HP-UX and the processor firmware (referred variously as PDC, SP, GSP, MP) to control specific features. The date command, ntpdate and xntpd all set the hardware and HP-UX system clocks at the same time. You have to go back to (very old) NIO boxes like the 825/835 models and OS versions before 8.0 (before 1990) to find the clock somewhat separate from OS clock commands.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2009 08:54 AM
тАО01-30-2009 08:54 AM
Re: Show & Set Hardware Clock on HP-UX
The date command sets the clock. period.
The hardware clock always runs with UTC, TZ will "adjust" the output to your timezone.
This is the normal behavior on any (non-PC) UNIX system I know.
The "concept" hardware clock was necessary to support dual boot configurations on PC's, because Windows always sets the hardware clock to local time and this would break the system time every time you swap between OS's.
Please follow the advice and sync your clock with external ntp sources... this an hardware independant advice.
My 2 cents,
Armin
PS: Please assign points if you find answers useful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2009 08:59 AM
тАО01-30-2009 08:59 AM