- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing & Synchronizing system date
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
06-18-2003 02:50 AM
06-18-2003 02:50 AM
Changing & Synchronizing system date
-Is it possible to just change the (HP-UX 11.0) system date without changing the other attributes (month, year, hour, mintues etc), If so how?
- How to synchronize system date and time of HP_UX server against other HP_UX server.
Thanks
John Jayaseelan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 02:54 AM
06-18-2003 02:54 AM
Re: Changing & Synchronizing system date
You need to configurate Network Time Protocol (NTP) to synchronize your server's clock to an external time source.
Chapter-7 of "Installing and Administering Internet Services" provides a good discussion of 'ntpd' implementation for HP-UX.
http://docs.hp.com/hpux/onlinedocs/B2355-90685/B2355-90685.html
For a list of external sources from which to derive correct time, and for other, general information see here:
http://www.ntp.org/index.html
Your internal clock runs UTC (Universal Time) but the value of your TIMEZONE (TZ) determines the *external*, user-perceived date and time (EST, MST, etc.).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 02:59 AM
06-18-2003 02:59 AM
Re: Changing & Synchronizing system date
2)using ntp protocol.man xntpd,man ntpdate.
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 03:09 AM
06-18-2003 03:09 AM
Re: Changing & Synchronizing system date
Some posting in the forums say changing the system date might affect OS installation. If so, What are all the issues in changing the system date and how that can be rectified.
Thanks
John Jayaseelan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 03:16 AM
06-18-2003 03:16 AM
Re: Changing & Synchronizing system date
install you're choosing the time zone,am I correct?Or you mean update-install...
Post such a link where the things are.
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 03:36 AM
06-18-2003 03:36 AM
Re: Changing & Synchronizing system date
In which direction are you intending to change the date, and by how many days?
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:25 AM
06-18-2003 06:25 AM
Re: Changing & Synchronizing system date
Just increase the date by 5 days without altering the time,year,minutes etc. Is it possible to just change the date in the system date without altering other attributes. If so how the date command needs to be used. help pages does not reveal much.
After testing synchronize the date time with Other HP-UX server.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:30 AM
06-18-2003 06:30 AM
Re: Changing & Synchronizing system date
2. You synchronize time with NTP, Network Time Protocl, xntpd. Email if you want setup details.
Stuart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:39 AM
06-18-2003 06:39 AM
Re: Changing & Synchronizing system date
This replaces the clock driver normally resident in the kernel with its own application software. That means that you can have your operating system at perfectly synchronized time, but your applications (oracle, anything/anybody else)have their own exclusive date and time. You can give them permission to set their own date stamp. They can "freeze" time so that their clock doesn't advance. You could have 200 users, each with a different time stamp.
Its a nice piece of software, and not horribly expensive ($8k USD). They give a free 30 day trial, so you should look into this.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:45 AM
06-18-2003 06:45 AM
Re: Changing & Synchronizing system date
# date 06182235
2. Setup NTP,
2.1.server
# vi /etc/ntp.conf
server 127.127.1.1
fudge 127.127.1.1 stratum 10
# vi /etc/rc.config.d/netdaemons
NTPDATE_SERVER=
XNTPD=1
XNTPD_ARGS
# /sbin/init.d/xntpd start
2.2.client
# vi /etc/ntp.conf
server 128.1.1.1
driftfile /etc/ntp.drift
# vi /etc/rc.config.d/netdaemons
NTPDATE_SERVER=128.1.1.1
XNTPD=1
XNTPD_ARGS=
# /sbin/init.d/xntpd start
2.3 to make the change
# ntpdate tick.usnogps.navy.mil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:45 AM
06-18-2003 06:45 AM
Re: Changing & Synchronizing system date
# date 06182235
2. Setup NTP,
2.1.server
# vi /etc/ntp.conf
server 127.127.1.1
fudge 127.127.1.1 stratum 10
# vi /etc/rc.config.d/netdaemons
NTPDATE_SERVER=
XNTPD=1
XNTPD_ARGS
# /sbin/init.d/xntpd start
2.2.client
# vi /etc/ntp.conf
server 128.1.1.1
driftfile /etc/ntp.drift
# vi /etc/rc.config.d/netdaemons
NTPDATE_SERVER=128.1.1.1
XNTPD=1
XNTPD_ARGS=
# /sbin/init.d/xntpd start
2.3 to make the change
# ntpdate server.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:53 AM
06-18-2003 06:53 AM
Re: Changing & Synchronizing system date
You can achieve the same thing by carefuly formatting the date string when using the date command
date MMDDhhmm
MM = Month
DD = day of month
hh = hour
mm = minutes
These are the minimum values you must specify with the date command.
If you set up ntp on your host, then you can use the ntpdate command to sync your clock initially, and run the xntpd daemon to keep it in sync. Keep in mind that if you set the system clock to a specific value, ntp will override this with whatever time its sources claim is accurate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 07:33 AM
06-18-2003 07:33 AM
Re: Changing & Synchronizing system date
Is the following syntax correct to just change the system date to 25 leaving attributes as it is.
date `date "+%m25%H%M%S"`
When tried, received the following message
date: exceeds maximum date.
When tried without %S date `date "+%m25%H%M"` got the message 'date: do you really want to run time backwards?[yes/no]'.
Could you please confirm changing the time does not affect the OS.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 07:43 AM
06-18-2003 07:43 AM
Re: Changing & Synchronizing system date
To do so, you must use the syntax
date MMDDhhmm[ccyy]
e.g.
date 061810382003
You must specify at ;east the month, day, hour and minutes. Century and year are optional.
If you change the date, you may affect certain programs on your system. Examples of this(as mentioned) are Oracle, crond, make, SCCS, and any currently running programs that make time-based calculations. See the warnings section of the date man page for more specifics.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 10:39 AM
06-18-2003 10:39 AM
Re: Changing & Synchronizing system date
For sync the time you can use the ntp
or you can use the rdate that i added
to this msg.
Check it it's compiled for hpux
usage: rdate
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 02:18 AM
06-19-2003 02:18 AM
Re: Changing & Synchronizing system date
rdate is not available in HP-UX 11 server.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 02:20 PM
06-19-2003 02:20 PM
Re: Changing & Synchronizing system date
Yes it's not part of hpux so if you check
you will see that i added compiled version
for hpux to my prev. msg
Save it, unzip and use.
Caesar