- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP UX Date confusion...
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-13-2008 08:56 PM
05-13-2008 08:56 PM
HP UX Date confusion...
I've got two RX2660 boxes running 11.23 on itanium that we're hoping to migrate to shortly, on is for production, the other is for development/backup etc.
On he box that's to be production the date command looks a bit weird.
If i type in #date I get
Thu May 15 00:49:24 EST 2008
If i type in #date -u I get
Wed May 14 14:51:00 UTC 2008
this makes no sense. I echo the $TZ parameter and I get:
EST-10EDT
Now, on the other box.. both commands return:
Wed May 14 14:51:00 with either UTC or EST.
There's something wrong with the soon to be production box and I can't figure it out. It's not got any datbases or applications on it, but i'm worried about the O/S becomming corrupted.
How do i fix the time? Is it a BIOS/ROM issue?
Should I call a HP engineer out onsite to fix it? I've got stuff all idea how to fix this and don't know whether or not to just have the box nuked and reinstalld or what.
I am not a UNIX guru but am worried by things like this where UNIX could get corrupted and fail at some stage in future.
Any ideas?
-confused
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 09:32 PM
05-13-2008 09:32 PM
Re: HP UX Date confusion...
to me. In the US of A, Eastern time normally
looks like "EST5EDT". You seem to be on
Eastern Singapore Time, or something else
inappropriate.
> Now, on the other box.. both commands return:
> Wed May 14 14:51:00 with either UTC or EST.
Huh?
Knowing nothing, I'd tend to run SAM, and
look for oddities in the date-time
configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 09:53 PM
05-13-2008 09:53 PM
Re: HP UX Date confusion...
Which is GMT+10 i believe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 10:40 PM
05-13-2008 10:40 PM
Re: HP UX Date confusion...
UTC is for GMT
1. Use UTC time and type the date command using the -u option as in: date -u 09131445
2. Make sure TZ has the correct timezone for your location, then type the date command without -u.
The TZ value is set for every user as you login by the file called /etc/TIMEZONE. You can display this file with the cat command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 11:02 PM
05-13-2008 11:02 PM
Re: HP UX Date confusion...
Your answer is in /usr/lib/tztab
more /usr/lib/tztab
will give you detailed information for you.
Australian Capital Territory : EST-10EDT
Australia is having different DST changes for different regions. tztab file has the information.
Melbourne is GMT+10. It is correct.
If you type date -u , you will get the output in UTC (GMT). That is correct behaviour.
echo $TZ gives what is defined in /etc/TIMEZONE
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2008 11:13 PM
05-13-2008 11:13 PM
Re: HP UX Date confusion...
All Fixed, logged a support call with HP before comming back to forums, advice very similiar, they instructed me as to what to do with the date command to correct the system date/time.
Pretty simple stuff, no databases or applications are on the machine yet.
Will close and assign points.
Thanks. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2008 03:14 AM
05-14-2008 03:14 AM
Re: HP UX Date confusion...
Thu May 15 00:49:24 EST 2008
>If i type in #date -u I get
Wed May 14 14:51:00 UTC 2008
>this makes no sense. I echo the $TZ parameter and I get: EST-10EDT
I'm curious why you think it doesn't make sense? (It would make more sense if we had trademarked EST and EDT so you couldn't use it down under. :-)
You have -10 so under EST you should be 10 hours ahead of UTC and you are in your fall season.
>on the other box.. both commands return:
Wed May 14 14:51:00 with either UTC or EST.
This is the system that is broken.