- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Command 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
09-08-2007 07:16 PM
09-08-2007 07:16 PM
server: HP-UX server1 B.11.00 U 9000/800 xxxxxxxxx unlimited-user license
i have started xntpd daemon .. i have changed (configured) /etc/TIMEZONE AS:
TZ=CST6CDT
export TZ
but .. if i'm located from "server2" and if i run a remsh command as:
/usr/bin/remsh servidor1 "uname -a;/usr/bin/date" | grep -v HP-UX
the output is a different hour:
09:09 but if i'm located into the server1 it says 01:00 ....
do i have to reboot server for taking new value about TIMEZONE file?
can i change the hour without shuting down the server?
please let me know .
Regards :0)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2007 08:28 PM
09-08-2007 08:28 PM
SolutionYes it is advised to reboot your server after a system wide TIMEZONE change.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=25866
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2007 08:49 PM
09-08-2007 08:49 PM
Re: Command date
date -S
is not there something like that for hp-ux?
i do not want to reboot the server ...
OR .. something related with some daemon as networks configuration where you only restart the daemons .. is not there something like that for the hour into the server?
please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2007 09:06 PM
09-08-2007 09:06 PM
Re: Command date
From the set_parms man page.
----
timezone
Allows the user to select a timezone based on the country of location. Also allows setting a usersupplied timezone. The system will need to be rebooted for a change to take effect.
----
Trond's answer from above thread is completly correct.
The command above will change the TIMEZONE in /etc/TZ which is read as processes start. So in order to set the timezone the system needs to be rebooted.
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2007 09:24 PM
09-08-2007 09:24 PM
Re: Command date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2007 11:10 AM
09-09-2007 11:10 AM
Re: Command date
Is this in the same timezone?
If you want remsh to work, then you should set the TZ in the command, especially if you are in a different zone:
remsh servidor1 "TZ=$TZ date"
>date -S
>is not there something like that for hp-ux?
There is:
# date mmddhhmm
but you do NOT want to change the GMT time, just your timezone.