- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: adjust system time
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
тАО02-06-2008 07:50 AM
тАО02-06-2008 07:50 AM
I am working on a system where ntp will not start and I believe it is due to the clock being out by 1.5 hrs ...
I have adjusted the time by speeding up the time on other unix systems however I cannot find an option to do this on tru64 ...
can some tell me how to speed up the clock until it reaches the desired time?
thanks
Chris.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 09:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 09:30 AM
тАО02-06-2008 09:30 AM
Re: adjust system time
I presume that the clock is out of sync - how can I bring this back in line,
on other O/S i can run
# date -a +/-
how can I perform this on my tru64 box?
Thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 09:40 AM
тАО02-06-2008 09:40 AM
Re: adjust system time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 09:49 AM
тАО02-06-2008 09:49 AM
Re: adjust system time
I have read the man page and am not sure if I run the command the clock will just bring the system to the current time?
Thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 10:25 AM
тАО02-06-2008 10:25 AM
Re: adjust system time
if [ $# -eq 0 ]
then
echo "Usage $0
else
INCR=$1
THIS_SECOND=`date +%S`
STEP=`expr $THIS_SECOND + $INCR`
date +"%m%d%H%M.%S"
if [ $STEP -lt 10 ]
then
date `date +"%m%d%H%M.0$STEP"`
else
date `date +"%m%d%H%M.$STEP"`
fi
fi
Some examples of usage:
adjust_time 2
while true
do
adjust_time 1
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 10:33 AM
тАО02-06-2008 10:33 AM
Re: adjust system time
The man pages for xntpd suggests that you should be able to use the -g option to allow corrections of more than 1000 seconds...
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN8/0308____.HTM
As previously mentioned, you won't be able to use ntpdate as that changes the time immediately.
Hope this helps,
Regards,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2008 12:54 PM
тАО02-06-2008 12:54 PM