- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- changing clock on the server
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
10-23-2007 12:11 PM
10-23-2007 12:11 PM
changing clock on the server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 12:39 PM
10-23-2007 12:39 PM
Re: changing clock on the server
Now, that being said, what type of server? What operating system? Do you just want to change the time? If that is all, then you use the 'date' command, assuming this is Unix you're talking about. Have a look at the date man page for more information and instructions.
# man date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 12:46 PM
10-23-2007 12:46 PM
Re: changing clock on the server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 12:53 PM
10-23-2007 12:53 PM
Re: changing clock on the server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 03:12 PM
10-23-2007 03:12 PM
Re: changing clock on the server
set_parms date_time will also help
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 06:29 PM
10-23-2007 06:29 PM
Re: changing clock on the server
set_parms date_time
Example:
SLX2:>set_parms
Usage: set_parms
Where
hostname
timezone
date_time
root_passwd
ip_address
addl_netwrk
or initial (for entire initial boot-time dialog sequence)
SLX2:>set_parms date_time
_______________________________________________________________________________
This section enables you to set the system clock.
_______________________________________________________________________________
The current system time is Wed Oct 24 10:24:04 MRU 2007
Is this correct?
Press [y] for yes or [n] for no, then press [Enter] n
_______________________________________________________________________________
You will be prompted for the date and time. Please enter all values
numerically, for example January is 1. The values in the parentheses
give the acceptable range of responses.
_______________________________________________________________________________
Please enter the last two digits of the year (00-99), then press [Enter] 07
Please enter the month (1-12), then press [Enter] 10
Please enter the date of the month (1-31), then press [Enter] 24
Please enter the hour (using 24 hour time) (0-23)
For example: For 10 in the morning enter 10, for 3 in the afternoon enter 15.
Then press [Enter]
....
Hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 07:20 PM
10-23-2007 07:20 PM
Re: changing clock on the server
Instead, the correct way is to make sure your server's time zone table has the correct rules for your timezone. If that is true, Daylight Saving Time transitions are handled automatically: there is *no need* to do anything at the OS level.
If the timezone rules need updating, you may need to restart any long lived processes, including cron, sendmail and all applications. But you can do this at any time of your choosing: you're not restricted to doing this at the exact time of the DST transition, as long as the correct rules will be in place at the time of the transition.
A. Clay Stephenson has a nice Perl script that automatically tests the timezone rules.
Since any Unix-like system uses UTC as its internal time representation, the testing method is as follows:
1.) Find the exact time of the DST transition, expressed in terms of UTC time.
Subtract one second from this UTC timestamp.
This timestamp will indicate the last second before the transition.
2.) Use the system's UTC -> local time conversion function to convert the UTC timestamp that was obtained in step 1 to local time. Display to the user and include the timezone name.
3.) Add one second to the UTC timestamp of step 1. This will be the first second after the transition.
4.) Use the system's UTC -> local time conversion function to convert the UTC timestamp of step 3 to local time. Display to the user and include the timezone name.
The user can then look at the displayed timestamps and confirm that:
- the system knows the correct time to make the transition
- the new time value will be correct (i.e. the transition happens in the correct direction)
- the timezone name of the default local time changes to match, e.g. from "EETDST" to "EET".
Note that the test *does not* involve changing the system clock at all.
If you are required to test by changing the system clock (for example, to satisfy a non-technical person who does not understand the details of Unix timekeeping), I recommend that you use "date -u" to set the system clock explicitly in terms of UTC time, since the local time is ambiguous at the autumn DST transition.
All standard warnings apply to changing the system time: always shutdown all applications before changing the time backwards.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2007 07:22 PM
10-23-2007 07:22 PM
Re: changing clock on the server
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1007176
MK