HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- simple DST test
Operating System - HP-UX
1829749
Members
2136
Online
109992
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-08-2007 02:23 AM
03-08-2007 02:23 AM
I have just run this command on all HP servers(all versions) and please let me know if this is a correct test
cat /usr/lib/tztab|grep 2007
if it returns 2007 then we are fine for DST else you have to either install patch or copy the tztab files from a working machine.
Thanks
Brian
cat /usr/lib/tztab|grep 2007
if it returns 2007 then we are fine for DST else you have to either install patch or copy the tztab files from a working machine.
Thanks
Brian
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2007 02:27 AM
03-08-2007 02:27 AM
Re: simple DST test
Hi Brian:
Well, assuming that you are in the United States using the standard US timezones, *and* assuming that you have at least restarted your 'cron' daemon and any long-running processes since the patch installation, then yes, you are probably OK.
There have been several cycles of DST patches, though, and I would be a bit more introspective of your patch than just a simple match for the string "2007"!
Regards!
...JRF...
Well, assuming that you are in the United States using the standard US timezones, *and* assuming that you have at least restarted your 'cron' daemon and any long-running processes since the patch installation, then yes, you are probably OK.
There have been several cycles of DST patches, though, and I would be a bit more introspective of your patch than just a simple match for the string "2007"!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2007 02:45 AM
03-08-2007 02:45 AM
Solution
This is hardly a definitive test. At most, you know that some lines contain "2007". I would also encourage you to install the patches if possible because while editing (or copying the file) will certainly fix you now, it is possible that later (even seemingly unrelated) patches might do a dependency check and fail in no DST patch is detected.
A far better test is to download and execute the attached Perl script, dst.pl. Because it uses the same underlying libc routines that all well-written code does (such as the date command), if it works then you can be reasonably certian that you are good to go.
dst.pl will display the exact seconds before and after the time transitions. You can also check multiple TZ's.
TZ=EST5EDT dst.pl
TZ=CST6CDT dst.pl
or simply "dst.pl" to use the current TZ setting. Invoke as "dst.pl -u" for full usage.
A far better test is to download and execute the attached Perl script, dst.pl. Because it uses the same underlying libc routines that all well-written code does (such as the date command), if it works then you can be reasonably certian that you are good to go.
dst.pl will display the exact seconds before and after the time transitions. You can also check multiple TZ's.
TZ=EST5EDT dst.pl
TZ=CST6CDT dst.pl
or simply "dst.pl" to use the current TZ setting. Invoke as "dst.pl -u" for full usage.
If it ain't broke, I can fix that.
- Tags:
- dst.pl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2007 02:50 AM
03-08-2007 02:50 AM
Re: simple DST test
Shalom Brian,
The more thorough the test the better. I like A Clay's scripts and wish the DST issue were relavent in Israel.
One caution: Don't set the time backwards on a system running an application like an Oracle database. The internal time database can become corrupted and crash the database.
SEP
The more thorough the test the better. I like A Clay's scripts and wish the DST issue were relavent in Israel.
One caution: Don't set the time backwards on a system running an application like an Oracle database. The internal time database can become corrupted and crash the database.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP