- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Slowin system clock down ?
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
Forums
Discussions
Discussions
Discussions
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
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
09-08-2000 03:25 AM
09-08-2000 03:25 AM
Due to several reasons (databases, backup) i don't want set the time back.
Is there a method available to slow down the clock till it has reached the real time.
I know that in SUN's Solaris there is a funktion to slow down the system clock.
Thanks in advance for your suggestions.
Stefan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 03:35 AM
09-08-2000 03:35 AM
Solutionthere's i system call adjtime() which adjusts the time gracefully.
See man adjtime
Put you a little C source at attachment for using this call.
The program asks for Delta Minutes/Seconds.
To adjust to past enter neg. value (eg: -81).
For only adjust seconds enter 0 for minutes.
Be aware to turn off xntp if you have (/sbin/init.d/xntp stop).
Regards
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 03:36 AM
09-08-2000 03:36 AM
Re: Slowin system clock down ?
I have not seen this type of function in HP-UX but maybe someone else has and will post.
The only other solution I could offer is to use NTP (Network Time Protocol) and sync to get the correct system time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 03:37 AM
09-08-2000 03:37 AM
Re: Slowin system clock down ?
1. consider using a NTP server ;
NTP sets the kernel view of the system clock. This means that the
tick adjustment changes the number of ticks the kernels thinks a
seconds contains. This is done all the time and NTP tries to constantly
get a better prediction of how many ticks are in a second. The real-time
clock is used once during the bootup to set this value and the time of
the system clock. After the system boots, you should always check the
system clock.
During the start of NTP, ntpdate synchronizes the clock with the
reference clock. This could be a timeserver or a radioclock
(recommended). This sets the real-time clock to the new value. It is
important that the timeserver has the correct time, even after a reboot.
NTP updates the real-time clock about every 8 hours.
2. Setup dtsd : distributed time server : would require DCE cell involvemnet/setup.
Not sure if there is an individual unix command to do what your after though !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 03:56 AM
09-08-2000 03:56 AM
Re: Slowin system clock down ?
On 10.20 though you'll have to use Andrew's C program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 04:58 AM
09-08-2000 04:58 AM
Re: Slowin system clock down ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 05:00 AM
09-08-2000 05:00 AM
Re: Slowin system clock down ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 05:16 AM
09-08-2000 05:16 AM
Re: Slowin system clock down ?
a little correction to my c program input:
if you want to adjust 81 seconds you have to split this in 1 minute and 21 seconds to go forward or -1 minute and -21 seconds to backward time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 05:17 AM
09-08-2000 05:17 AM
Re: Slowin system clock down ?
Setting up ntp services would be my choice, too. There's a good section on this in the Installing & Administering Internet Services manual. I synchronize all my servers to one "master" which syncs to its own clock. There is a wealth of discussion within this forum as well as in the KB too.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2000 06:33 AM
09-08-2000 06:33 AM
Re: Slowin system clock down ?
As for ntp: I am using ntp to synchonize my workstations with this server. But i don't have a radioclock or internetaccess available for this server. Also there is no other ntp timesource available in the network. I was thinking about this option, but it is not available to me at the moment.
The C-Programm seems to be what i have been looking for. I will come back and tell you.
As this server has a database running and is accessed nearly 24 hours a day there is no timewindow to reset the clock. Therefore i was looking for this "slow down" solution.
Thanks to you all.
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 05:54 AM
09-11-2000 05:54 AM
Re: Slowin system clock down ?
Your C-Programm does exactly what i was looking for. Worked without any problem.
Thanks a lot.
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2000 05:56 AM
09-11-2000 05:56 AM
Re: Slowin system clock down ?
Your C-Programm does exactly what i was looking for. Worked without any problem.
Thanks a lot.
Stefan