- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Time and Timezone
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
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
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
11-07-2010 09:57 PM
11-07-2010 09:57 PM
I dont know why but time of my servers change to current_time - 1 hour. I guess it's coz of time zone. Our country doesnt change time to winter and summer time zone and it must be GMT + 5.00. Now command date shows me
$ date
Mon Nov 8 09:58:44 WST 2010
and in file /etc/TIMEZONE is value
# less TIMEZONE
TZ=WST-5WSTDST
export TZ
Time must be 10:58:44.
So how can change time and timezone correctly without rebooting? which way is better command date or set_parms?
Can i use windows NTP server to my HP-UX version 11.3?
thanks and regards,
Rustam
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2010 10:07 PM
11-07-2010 10:07 PM
Re: Time and Timezone
i would recommend you to change the time with the reboot of the system.
yes you can run NTP server on the WIndows OS, its doesn't matter on the OS ( unix / linux / Windows ... )
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2010 10:10 PM
11-07-2010 10:10 PM
Re: Time and Timezone
#ntpq -p
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2010 10:36 PM
11-07-2010 10:36 PM
Re: Time and Timezone
Mikap, so u suggest to use set_parms time? How about TIMEZONE?
My NTP Server is running on Windows Server 2003 where is domain structure exist. Is it ok for HP-UX?
Shibin, this command #ntpq â p shows me this:
# ntpq -p
ntpq: read: Can't assign requested address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2010 10:43 PM
11-07-2010 10:43 PM
Re: Time and Timezone
edit /etc/default/tz
sms:/etc/default#strings tz
MET-1METDST
for example my time zone definition.
==> check the NTP config
strings /etc/ntp.conf
server IP_OF_YOUR_NTP_server(1-x)
grep -i xntp /etc/rc.config.d/netdaemons
# xntp configuration. See xntpd(1m) #
# XNTPD: Set to 1 to start xntpd (0 to not run xntpd)
# XNTPD_ARGS: command line arguments for xntpd
export XNTPD=1
export XNTPD_ARGS=
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2010 11:23 PM
11-07-2010 11:23 PM
SolutionIt's recommended to reboot the system after changing /etc/TIMEZONE, but if you cannot do that, you should at least restart all daemons and other long-running processes that are using time information.
Since the WST-5WSTDST timezone is now on winter time, changing the TZ to remove the DST identifier will have no visible effect now. If a reboot can be scheduled at some time between now and the last week of March 2011, you'll probably be fine.
The next step is to set your clock to correct time. It is now 1 hour slow, so you must change the clock forward. This is fortunate, because turning the clock backwards is generally not safe when applications are running.
To make such a major change to the system clock, ntpd is not ideal. You might want to use either "date" or "ntpdate" commands to set the system clock.
If you want to test the accessibility of your NTP server, run "ntpdate -d
If your Windows NTP server seems to work and has a connection to reliable timesources, you can use it.
# ntpq -p
ntpq: read: Can't assign requested address
This only means xntpd is not running on your system. (Note: when xntpd is running, you cannot use ntpdate - they both would be trying to use the same UDP port, creating a conflict. But when xntpd is properly configured and running, you usually won't need ntpdate.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2010 11:35 PM
11-07-2010 11:35 PM
Re: Time and Timezone
Were you using NTP services in UNIX ?
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 02:24 AM
11-08-2010 02:24 AM
Re: Time and Timezone
In this file /etc/ntp.conf I couldnâ t find string
server IP_OF_YOUR_NTP_server(1-x)
Should I add new string?
Server IP_OF_MY_NTP_SERVER(1-x)
grep -i xntp /etc/rc.config.d/netdaemons shows me
# xntp configuration. See xntpd(1m) #
# XNTPD: Set to 1 to start xntpd (0 to not run xntpd)
# XNTPD_ARGS: command line arguments for xntpd
export XNTPD=0
export XNTPD_ARGS=
MK,
I changed time with set_parm date_time command
Should I just open /etc/TIMEZONE file and edit valueTZ=WST-5WSTDST export TZ to TZ=WST-5 export TZ with any editor?
>> This only means xntpd is not running on your system. (Note: when xntpd is running, you cannot use ntpdate - they both would be trying to use the same UDP port, creating a conflict. But when xntpd is properly configured and running, you usually won't need ntpdate.)
So I have to check and configure xntpd correctly, right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 02:30 AM
11-08-2010 02:30 AM
Re: Time and Timezone
Yes, that's when it changes in the US.
>Our country doesn't change time to winter and summer time zone and it must be GMT + 5.
As MK said, then you must use a timezone like: WST-5
(Otherwise you follow the US rules.)
>MK: The next step is to set your clock to correct time. It is now 1 hour slow, so you must change the clock forward.
How do we know it is slow? What does "date -u" show? Because it was correct during the summer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2010 05:24 AM
11-08-2010 05:24 AM
Re: Time and Timezone
Yes, that would be a good thing to do. But xntpd is good in making small corrections (up to a few minutes), but you're likely to need a correction of +1 whole hour. It's faster to make a big correction using date/ntpdate, then configure and start up xntpd to keep it in sync with high precision.
Dennis> How do we know it is slow? What does "date -u" show? Because it was correct during the summer?
The original post includes the current TZ setting, and the fact that the local time is now exactly 1h slow. By looking at the HP-UX tztab definition for WST-5WSTDST (a timezone with its own specific DST definition in HP-UX tztab) I can see the latest DST transition for it has happened on the last Sunday of October. By doing a "reverse transform", it is possible to figure out what the UTC time must be.
It is conceivable that this has been noticed only after a week has passed, since the poster says they don't use DST in their country... and so are unlikely to pay any special attention to system clocks at DST transition times.
Of course, it's possible that rustam might have custom TZ settings for his account only, but I find it unlikely since most people seem to be totally unaware of this feature of Unix systems.
MK