|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620073 | | Members: | 22813 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
lebjf000   |
coolcommand
how to prepare older Linux systems for 2007 DST change |
Description
To prepare older Linux systems for 2007 DST change:
1) Download and install the latest tzdata rpm:
Example for RHEL4:
# rpm –u tzdata-2006m-3.el4.noarch.rpm
2) In order for the change to be effective, you need to copy over the /etc/localtime
# zdump -v /etc/localtime | grep 2007 /etc/localtime Sun Apr 1 06:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 EST isdst=0 gmtoff=-18000 /etc/localtime Sun Apr 1 07:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 EDT isdst=1 gmtoff=-14400 /etc/localtime Sun Oct 28 05:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 EDT isdst=1 gmtoff=-14400 /etc/localtime Sun Oct 28 06:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 EST isdst=0 gmtoff=-18000
# cp /usr/share/zoneinfo/America/New_York /etc/localtime
# zdump -v /etc/localtime | grep 2007 /etc/localtime Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 gmtoff=-18000 /etc/localtime Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 gmtoff=-14400 /etc/localtime Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1 gmtoff=-14400 /etc/localtime Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0 gmtoff=-18000
Also search you system for any application have their own copy of localtime and update those if needed: # find / -name localtime -ls
OR
To be safe, simply reboot your server and this will ensure all applications will use the DST changes. |
Example
rpm –u tzdata-2006m-3.el4.noarch.rpm; reboot |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: ls - how to list files and directories
Example: ls
[show me the details] |
coolcommand: get_managed_systems_status.sh - script to get status of managed systems on IBM HMC
Example: ssh hmc get_managed_systems_status.sh
[show me the details] |
coolcommand: mkfile - to create a large file in Sun Solaris
Example: mkfile 500m bigfile
[show me the details] |
coolcommand:
how to disable IP forwarding between interfaces in Sun Solaris
Example: touch /etc/notrouter
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51939 |
| Category AIX | 49005 |
| Category General UNIX | 47490 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|