coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday May 19, 2013


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 18 guests online

Newest Member

nbewwmbxog

Hit Counter
11536961 Visitors

cool Statistics
coolcommands:1338
Categories:83
Total queries:620073
Members:22813





Search coolcommands.com
Search Keyword:


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



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1160
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris51939
Category AIX49005
Category General UNIX47490
solaris23554
aix22739

Terms of Use
Privacy
Contact


 
coolcommands.com © 2013. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum