- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: system time is all the sudden changed?
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
05-16-2006 03:00 AM
05-16-2006 03:00 AM
I used date -u to change the time back. Is that right way to correct it?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 03:04 AM
05-16-2006 03:04 AM
Re: system time is all the sudden changed?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 03:11 AM
05-16-2006 03:11 AM
SolutionYou really need to find out how the system date got changed but because only a superuser is allowed to change the system date, the list of likely suspects should be a short one. Of course, a setuid executable owned by root would also do the trick as would sudo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 03:15 AM
05-16-2006 03:15 AM
Re: system time is all the sudden changed?
You can use 'date' with or without '-u' to change the date as noted in the manpages.
*However*, any time you change a date backwards, you should stop all databases; change the date; and then stop and (re)start the 'cron' daemon: '/sbin/init.d/cron'.
Only the 'root' can change the time. Someone has probably attempted to reset it and mangled his/her entry. This is a serious problem.
You be running 'xntpd' (Network Time Protocol (NTP)) in order to keep your server's time synchronized to a good external source.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 10:32 AM
05-16-2006 10:32 AM
Re: system time is all the sudden changed?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 03:30 AM
05-22-2006 03:30 AM
Re: system time is all the sudden changed?
I have tried everything suggested in the thread. any idea what is causing the problem?
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 03:36 AM
05-22-2006 03:36 AM
Re: system time is all the sudden changed?
Hanry,
1. set time to correct time/date
2. set up ntp to another server to keep time in sync (use SAM if not familar with not setup)
3. if the system time changes again
a. check the logs to see if you discover if anyone changed the time
syslog
each users .sh_history file
b. if the time stops, i.e does not change at all after you alter it - call HP for service.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 03:42 AM
05-22-2006 03:42 AM
Re: system time is all the sudden changed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 04:54 AM
05-22-2006 04:54 AM
Re: system time is all the sudden changed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 04:55 AM
05-22-2006 04:55 AM
Re: system time is all the sudden changed?
DEC,
I have already tried all steps you suggeste.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 04:59 AM
05-22-2006 04:59 AM
Re: system time is all the sudden changed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 05:14 AM
05-22-2006 05:14 AM
Re: system time is all the sudden changed?
You said "seems running very very slow". What does that mean? I suggest that you examinie the system date and again what command are you using to display the date? and then wait 1 hour (as measured by your watch or a (non-computer) clock and then examine the date again to see if your system thinks that 1 hour has transpassed.
On some boxes there was a firmware patch to correct erratic/drifting hardware clocks but in any event, once you get the system date within a few tens of seconds of "correct time", NTP should then be able to maintain time accurate to with a few tens of milliseconds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 05:28 AM
05-22-2006 05:28 AM
Re: system time is all the sudden changed?
Yes, you need to setup 'xntpd' (NTP), *but* having done that you will need to set your server's time to a very near correct value to allow 'xntpd' to correct your server's time. NTP will abandon all attempts at time synchronization if its time source and its server differ by more than about 1000 seconds.
I would suggest that you configure NTP to set its clock to its time source(s) during bootup (by configuring the NTPDATE_SERVER variable in '/etc/rc.config.d/netdaemons') and thereafter run continuously. You need to correct your server's time but you need to incur the cost of a reboot to do so.
Regards!
...JRF...