- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to change the date and time in hpunix
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-06-2010 09:20 PM
06-06-2010 09:20 PM
how to change the date and time in hpunix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2010 09:28 PM
06-06-2010 09:28 PM
Re: how to change the date and time in hpunix
Does the latter show the correct UTC/GMT time?
(Now is about: Jun 7, 2010 05:28:02 GMT)
If so, your TZ setting is wrong.
You can use the date(1) command to set the time & date.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2010 09:37 PM
06-06-2010 09:37 PM
Re: how to change the date and time in hpunix
keep in mind about TZ as suggest by Dennis.
Do not put the date behind if your server is running oracle, you would be doomed.
WHat about NTP is it running on your environment.
#ntpq -p
If yes check its configuration and let it handle time for you.
Need more information.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2010 10:25 PM
06-06-2010 10:25 PM
Re: how to change the date and time in hpunix
date [-u] [mmddhhmm[[cc]yy]]
date -u 070611302010
mm - Month number [01-12].
dd - Day number in the month [01-31].
hh - Hour number (24-hour system) [00-23].
mm - Minute number [00-59].
cc - Century minus one [19-20].
yy - Last two digits of the year number [70-99, 00-37 (1970-1999, 2000-2037)]. If omitted, the current year is used.
You can use either SAM or set_parms. e.g.
#set_parms date_time
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2010 09:25 PM
06-09-2010 09:25 PM
Re: how to change the date and time in hpunix
#set_parms date_time
#man set_parms
Regards
RAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2010 04:20 AM
06-10-2010 04:20 AM
Re: how to change the date and time in hpunix
SAM --> Time --> System CLOCK
rgs,