- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Effects of date command
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
тАО11-11-2002 10:10 PM
тАО11-11-2002 10:10 PM
I need to reconfigure the timestamp(2 minutes behind now) with the 'date' command manually on 2 N-class HP9000 servers so that they are in consistent with the rest of the network (connected to an external atomic clock).
I will be doing this during a time when my cron jobs are not running. Furthermore, I'm setting it forward, so I guess this should not affect my make program. Lastly, my system is not doing any incremental backups.
Currently, xntpd is running on these 2 servers. So after manually resetting the timestamp on both the servers simultaneously (hopefully I can do it fast enough).
After that I hope xntpd will be able resynchronise the time deviations between these 2 servers to provide a better accuracy from microsecond to millisecond range. Thus, do I need to restart the xntpd daemon for this?
However some of the worries I have is:
1. I cannot reboot the servers since they are live production system. So, it is advisable to use the date command without rebooting the system?
2. I also will be doing this while system is running in multi-user mode since I cannot reboot the system. Is that advisable too?
3. Is there any other effect of this 'date' command on the system?
Thank you.
Best regards,
Serena
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2002 10:10 PM
тАО11-11-2002 10:10 PM
Re: Effects of date command
How about using 'ntpdate'.
since you need to synchronize with n/w, i think this is one of the solution
have a look at ntpdate man pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2002 10:45 PM
тАО11-11-2002 10:45 PM
Re: Effects of date command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2002 11:01 PM
тАО11-11-2002 11:01 PM
Solutionhttp://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x89126049dbb6d611abdb0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2002 03:56 AM
тАО11-12-2002 03:56 AM
Re: Effects of date command
If you're absolutely sure that you want to do this and no harm will come from it (i.e. no databases running, etc.), try this technique:
LIST=`cat /etc/hosts |grep "#unixhost" |awk -F# '{ print $3 }'`
for SERVER in $LIST
do
remsh $SERVER /usr/sbin/ntpdate -b yukon
done
Any method will work for the list but we use the /etc/hosts file to provide this list by adding the #unixhost comment like this:
130.1.0.251.....yukon...yukon.holstein.com.......#unixhost#yukon
(ignore the periods - they're just for spacing).
Good luck,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2002 09:34 PM
тАО11-12-2002 09:34 PM
Re: Effects of date command
Seems like they are referring to each other at the moment but I am not too sure. Please comment on this.
If that is the case, I have to change the timestamp at least on one server then the other server will slowly follow suit. Databases are running on both of these servers all the time. So I am worried about having to deal with broken links and other corruption later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 03:20 AM
тАО11-13-2002 03:20 AM
Re: Effects of date command
I am no expert in this area but would observe as follows.
Your 2 machines are just referring to each other. I don't understand what 127.127.0.1 is - perhaps some strange loopback address - but this is shown by the ntpq and netdaemons info.
You mention an external atomic clock. You'll need some machine (X) referring to that and then refer each of your 2 machines to X. Using the server command in /etc/ntp.conf.
You'll then have to stop and start xntpd I'd expect.
If time is VERY important and effects accounting I suggest
resetting in slow stages by hand. eg 1 second at a time over a few hours!!! Carefull with /sbin/init.d/xntpd as it attempts a single step resetting of the time before running the xntpd daemon.
Regards, Garry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 06:49 AM
тАО11-13-2002 06:49 AM
Re: Effects of date command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 06:50 AM
тАО11-13-2002 06:50 AM
Re: Effects of date command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 06:57 AM
тАО11-13-2002 06:57 AM
Re: Effects of date command
man date
Regards,
John