- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Change time - URGENT
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
02-19-2007 02:57 AM
02-19-2007 02:57 AM
1. stop the apps.
2. change the time
date -u (not sure abt this)
then /sbin/init.d/xntpd start
is this correct?
Thanks
Joe
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 03:01 AM
02-19-2007 03:01 AM
Re: Change time - URGENT
You have a problem.
Many applications like Oracle will have problems with their internal time databases if you roll the time back at all.
If you don't have a troublesome application then your plan should work.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 03:02 AM
02-19-2007 03:02 AM
Re: Change time - URGENT
You have a problem.
Many applications like Oracle will have problems with their internal time databases if you roll the time back at all.
If you don't have a troublesome application then your plan should work.
Also understand that time zone is merely a display of time. Time in Unix is measured by the number of secconds since January 1, 1970 when Unix was supposedly born(hatched).
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 03:05 AM
02-19-2007 03:05 AM
Re: Change time - URGENT
the format for changing the date would be something like:
date 100800452006 for 8 Oct 2006 00:45
(See "man date")
Have you set up yor NTP connection etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 03:05 AM
02-19-2007 03:05 AM
Re: Change time - URGENT
Yes. You can use 'date -u' but be sure that the time you specify is UTC (GMT).
Remember, 'xntpd' (NTP) works in UTC. It doesn't matter where its time sources reside. You should use three from the "pool" (for example):
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 03:12 AM
02-19-2007 03:12 AM
Re: Change time - URGENT
Now, reading your question another way, you may be trying to set the time ahead 24 hours. That is much safer --- as long as the change is permanent. In that case, your plan is sound.
Whether or not to use date -u mmddhhmmccyy or simply date mmddhhmmccyy depends entirely upon whether you wish to use your local TZ value to set the time or UTC. In any event, if done correctly, the internal time will be set to the same value.
Note: "The statement the time server is in MST. is a meaningless statement. You should understand that a singlre UNIX box can have multiple TZ's -- all of which are correct for users connected from all over the planet. The system simply counts seconds since 1-Jan-1970; TZ controls how those seconds are displayed. An NTP server has no notion of a timezone. Second mistake: Time Server - singular; you want multiple time servers -- at least 3. That way, your clients can make intelligent, statistical decisions about which time servers are good.
Finanly, don't overlook that stepping the time ahead can also cause critical cron tasks to be missed or executed inappropriately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 03:32 AM
02-19-2007 03:32 AM
Re: Change time - URGENT
date -u (using the gmt time)
or just date (using the local time)?
after setting the time. i am going to start the apps/cron jobs and /sbin/init.d/xntpd start.
Pleaze advise
Thanks
Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 03:41 AM
02-19-2007 03:41 AM
SolutionNow that it is clear that you are going to change the time backwards, unless you fully understand the consequences of this action, you might be better advised to wait until this weekend and then shutdown for a day and restart. This will keep all of your timestamps consistant (if wrong) within the week and subsequent tranactions will retain chronological order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 03:42 AM
02-19-2007 03:42 AM
Re: Change time - URGENT
Dont know how bad you are...
Let figure out:
ant:/sm/export/aix/psyche/patches $ date
Mon Feb 19 17:40:45 MET 2007
ant:/sm/export/aix/psyche/patches $ date -u
Mon Feb 19 16:40:48 UTC 2007
ant:/sm/export/aix/psyche/patches $
Try that and see what time/date your box give us.
All the best
Victor (doing some old aix at the moment...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 04:36 AM
02-19-2007 04:36 AM
Re: Change time - URGENT
Now if you setup NTP correctly, the file /etc/rc.config.d/netdaemons has specified a working NTP server which will 'jump' the time to the correct value when you reboot. Then xntpd will be started and will keep your server in sync. The value of $TZ defines the timezone translation. If it is wrong, DO NOT change the time. Check that date -u is correct. If it is, then select the correct value for TZ. TZ is defaulted in the file /etc/TIMEZONE. Multiple users in different timezones can override this default value to match their local time.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2007 10:08 AM
02-19-2007 10:08 AM
Re: Change time - URGENT
Thanks
Joe