- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: monitoring "date -a -60"
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
10-25-2005 03:40 AM
10-25-2005 03:40 AM
monitoring "date -a -60"
i do not understand how to monitor it ...basically when it has completed slewing the clock, and/or even know what its rate of change on the system clock is
running "ps -ef | grep date" gives me nothing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 04:27 AM
10-25-2005 04:27 AM
Re: monitoring "date -a -60"
also, when i am done (which i am hoping to find a way to know as so to automate/script it), i will be starting NTP, and so i do not want the "date -a -60" to be conflicting with NTP when NTP is turned on when i feel the clock is relatively close (within several seconds) to the NTP server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 04:58 AM
10-25-2005 04:58 AM
Re: monitoring "date -a -60"
while true
do
date
sleep 1
done
and periodically comparing that output with the date on the system in question. Of course, you'd have to know the difference in the time between the two systems before you start. Tedious, but it should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 07:13 AM
10-25-2005 07:13 AM
Re: monitoring "date -a -60"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 10:46 AM
10-25-2005 10:46 AM
Re: monitoring "date -a -60"
clay, you hit the key point i needed addressed. the man page explains that when i run "date -a -60" again it doesn't undo any previous slewing (good!), and that there is even a way with some scripting to use adjtime to see how much work it has left ...sad thing for me is that i have lost all my C prorgramming skills, so even with the example they give (using the command to know when the adjustment is completed) it is difficult for me to implement it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 06:17 AM
10-26-2005 06:17 AM
Re: monitoring "date -a -60"
Why not just connect to the NTP server? It will adjust the local clock slowly anyhow. I've done it with machines up to 5 minutes time difference with no ill effects.
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 06:53 AM
10-26-2005 06:53 AM
Re: monitoring "date -a -60"
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 10:08 AM
10-26-2005 10:08 AM
Re: monitoring "date -a -60"
thx bill, i think there is away to know about the progress of the date command as indicated by Clay ...via adjtime(). you may be right in the sense that i must use another system to compare against to see how much time is being lost (basically the rate of the slowing), but on the local system it apppears that there is a way to know when its done doing its job ...just that i need to dust off my brain where the C coding skills may still be as so to play with adjtime()!