- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- GMT standard on hpux
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-10-2006 05:15 PM
05-10-2006 05:15 PM
Are HPUX servers usually set their timezone with reference to GMT standard ? In case they are configured to take their time from a time sync server then what is the timezone of it ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 05:23 PM
05-10-2006 05:23 PM
Re: GMT standard on hpux
On HP-UX, you can set your time zone according to the place where you live (PST). If you want to reflect GMT, you can set that too.
For configuring NTP, check this out
http://docs.hp.com/en/B2355-90774/ch04s02.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 06:25 PM
05-10-2006 06:25 PM
Re: GMT standard on hpux
Time in HP-UX is measured as the number of ticks(seconds) since Jan 1, 1970.
All the TZ/Timezone information does is effect how its displayed on screen.
Connecting to a valid ntp souce, HP-UX will use any time zone you wish, even one you make up yourself.
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
05-11-2006 01:17 AM
05-11-2006 01:17 AM
SolutionThe confusion comes when you see the time displayed or you change the time to match your current timezone. All the HP-UX time interfaces (system calls, libraries and programs like date) translate the GMT internal value to match the value of TZ. So your current timezone is:
echo $TZ
And anytime you type the date command, it is translated using the rules in /usr/lib/tztab. So you can have a user login from any location in the world and see the correct time by simply setting TZ to match their location as they login. You can also see other timezones in your current shell like this:
TZ=EST5EDT date
TZ=PST8EDT date
You see the time in those other timezones because the TZ value has been temporarily set to a different value. This is particularly useful because governments arbitrarily create or change the rules for a particular location and HP-UX has the tztab file to document the common locations and rules. See: man tztab
But here is the best part: you can make up your own timezone with your own rules. The man page for environ (man environ) describes how to create your own private timezone. For instance, here is my own (silly) timezone:
TZ=BILLH5:33 date
This shows the time based on GMT minus 5 hours and 33 minutes.
So the folks in the UK, Australia and next year, the United States, can easily change the rules and HP-UX users will be unaware of the new rules.
Now daylight saving rules are just an extension of the TZ value. TZ is simply translating GMT so the rules for switching to and from daylight saving are equally simple. The internal system time never changes -- only the interpretation. So the apparent jump in time at 2AM in the morning is just that, a translation of GMT time. So once you select the correct timezone , you can forget about time changes (until the politicians get nervous and decide it's time for a new law..).
So how do you set the timezone? There is a single file: /etc/TIMEZONE which is read automatically as each user logs in. This file is sourced in /etc/profile and becomes the default time for each user. But TZ can be changed for each user if needed by editing .profile and changing TZ to match their local timezone.
So using NTP requires no knowledge of local timezones. GMT (aka, Zulu or UTC) is the worldwide standard and NTP will always set your local computer correctly. If the time is off by an hour or two, check TZ first.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 04:57 AM
05-15-2006 04:57 AM
Re: GMT standard on hpux
Regards,
Shiv