Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DST Patch ..confirmation 1

Status
Not open for further replies.

samirm

Technical User
May 12, 2003
80
0
0
US
Hi,

I have a solaris machine which is only being used for FTP from external vendor to our organization. I want to confirm if any DST patch is requuired from this stand -point.
Here is my uname output :-

$ uname -a
SunOS ftp01 5.6 Generic_105181-32 sun4u sparc SUNW,Ultra-5_10
$ date
Sun Feb 25 14:30:04 EST 2007


Not sure which patch is required and how to apply that. I am not a solaris guy ( know only AIX) and this is the only server which we have in our datacenter. Any help on this will be highly appreciated.
Thanks again ..

- Sam
 
Hello, The OS version you have is Solaris 2.6....Sun did not support a DST Patch for this because it's an old OS version, but I also have a lot of 2.6 that I'm running & there's a way around this.

Go to Sunsolve.sun.com, accept the agreement, (you might have to sign in- No big deal)look for Patch & Updates, Look for PATCH 109809-05 in the Patch Finder, download the Patch to /tmp directory

Sam I don't have the Path remembered off head, but i"ll be sure to follow up on this thread tomorrow...

One thisn you need to do first, is copy zoneinfo to zoneinfo.org, then cd to /tmp/SunW?/other directories I don't remember off head & finally to src & then do
# zic northamerica
from the command line.


(You don't do patchadd in this case at all).

Then, you do the following to verify the Patch

# zdump -v $TZ | grep 2007

you should see the present date followed by March 11.

(You might want to run the command & cat to a directory before & after the patch is added to be able to compare.

Good Luck,
Sanmi
 
Sanmi,
Thanks for your reply ..
Here is the output from the server ..

$ /usr/sbin/zdump -v $TZ | grep 2007
US/Eastern Mon Feb 26 02:28:51 2007 GMT = Sun Feb 25 21:28:51 2007 EST isdst=0
US/Eastern Sun Apr 1 06:59:59 2007 GMT = Sun Apr 1 01:59:59 2007 EST isdst=0
US/Eastern Sun Apr 1 07:00:00 2007 GMT = Sun Apr 1 03:00:00 2007 EDT isdst=1
US/Eastern Sun Oct 28 05:59:59 2007 GMT = Sun Oct 28 01:59:59 2007 EDT isdst=1
US/Eastern Sun Oct 28 06:00:00 2007 GMT = Sun Oct 28 01:00:00 2007 EST isdst=0

you mean I am having Solaris 2.6 ? How did you get this information? Then what is 5.6 which is showing in uname -a output from my Solaris server ?

Looking forward for your reply ..

Thanks again ..

- Sam
 
Hi Sam, there've been a few threads about versioning - see Thread60-963034 and the link mentioned within it for example. HTH.

I want to be good, is that not enough?
 
Sanmi,

I have gone through the site, sunsolve.sun.com
This is the URL


Status: OBSOLETE

Patch Id: 109809-05

***********************************************************************
READ THE TERMS OF THE AGREEMENT ("AGREEMENT") IN THE LEGAL_LICENSE.TXT
FILE CAREFULLY BEFORE USING THIS SOFTWARE. BY USING THE SOFTWARE, YOU
AGREE TO THE TERMS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE
TERMS, PROMPTLY DESTROY THE UNUSED SOFTWARE.
***********************************************************************

Keywords: timezone data australasia indiana

Summary: Obsoleted by: 109809-06 SunOS 5.8: timezone data patch

Date: Jan/18/2007


And I can see following points were covered ..too
=================================================


Problem Description:

6497364 update zoneinfo timezones to 2006p - (Western Australia DST 12/3/2006)

(from 109809-04)

6440139 update zoneinfo timezones to 2006n

(from 109809-03)

6380398 update zoneinfo timezones to 2006a

(from 109809-02)

6226357 update zoneinfo timezones to tz2005o
6348147 POSIX timezones 2007 transition dates - U.S. Energy Policy Act of 2005

(from 109809-01)

4313766 require correction to timezone data for Australasia due to Olympics

so ..you mean if I download tis patch and install ..should be fine right ? for DST problem ..?


Patch installation instruction given like this :-
===================================================

Patch Installation Instructions:

--------------------------------

For Solaris 2.0-2.6 releases, refer to the Install.info file and/or
the README within the patch for instructions on using the generic
'installpatch' and 'backoutpatch' scripts provided with each patch.

For Solaris 7-10 releases, refer to the man pages for instructions
on using 'patchadd' and 'patchrm' scripts provided with Solaris.
Any other special or non-generic installation instructions should be
described below as special instructions. The following example
installs a patch to a standalone machine:

example# patchadd /var/spool/patch/104945-02

The following example removes a patch from a standalone system:

example# patchrm 104945-02

For additional examples please see the appropriate man pages.
 
(Before you the following, be sure to make a copy of the zoneinfo first.
You do
# cd /usr/share/lib
# cp -rp zoneinfo zoneinfo.org

Ok good....Once you download the patch into the /tmp or /var/tmp directory ( whichever you choose....doesn't really matter), then you do the following
# cd /tmp (assuming it's in /tmp
# unzip 109809-06 ( I suppose previous versions are now obsolete)
# cd 109809-06/SUNWcsu/reloc/usr/share/lib/zoneinfo/src
(This was the full path I forgot yesterday(
# zic northamerica

.....................
Once that's complete, run the zdump command again & where you see " US/Eastern Sun Apr 1 06:59:59 2007 GMT = Sun Apr 1 01:59:59 2007 EST isdst=0"
should now read March 11.

This will work......Good Luck.

Sanmi
 
Hi Sanmi,

Do you know what patch to use for Solaris 7 ?

TIA
 
I was told by a local Sun guy that Solaris 2.5,2.6 and 7 will require T&M from Sun. They will give you a temp license for 48 hrs. Contact Sun for assistance.

patch 109809 is for Solaris 8.
 
SUN will charge you for these Patches.......The only one that's free is the one for Solaris 8.
The workaround is what I have posted above.....I believe if it works for 2.6, it should work for 7 with no problem.

I have 30 plus servers running Solaris 2.6 & believe me, the work around works fine..

Just don't do patchadd, instead, do zic northamerica in the directory previoslt mentioned.

Sanmi
 
Tuka,Yes Sun has told us they will charge for Solaris 7 and we are talking to them, I was curious about this workaround, it's not a big issue for us as we have only 4 servers running Solaris 7.

Sanmi,

The patch for Solaris 8 and above involved adding two patches, one to the timezone files and another to libc. Your workaround only fixes the timezone files what about libc ?
 
As far as I know, only the timezone Patch is what is required.
 
Here's a perl script that will tell you if your system needs DST patching or not. It seems to work for all flavors of *nix.

It's from Sun's BigAdmin site:
Code:
#!/usr/bin/perl

###
### The following sript will check if the system has the correct defination 
### for Daylight Saving Time. The start of Daylight saving time has changed 
### to the second Sunday in March starting in 2007. 
###
### The script displays the time before and after the switch to Daylight 
### saving time. The Time zone name should change, for example CDT to CST. 
### The script has been tested on Solaris, Red Hat and AIX.
###
### Original posted on:
### [URL unfurl="true"]http://blight.ca/twiki/bin/view/Notes/CheckDaylightSaving[/URL]
###
###
### Update (02/21/2007):
###
### This script works great on all of my SunFire v240s and also on our 
### SunFire E25k domains; however, it displays the error message on a 
### SunFire v210 even though the changes have taken effect.
###
### I contacted Sun Support initially and they had me run a few commands 
### to check if the changes were made:
###
###   zdump -v US/Eastern | grep 2007
###   zdump -v EST5EDT | grep 2007
###
###   You can change them for each timezone.  For example:
###   zdump -v US/pacific | grep 2007
###   zdump -v PST5PDT | grep 2007
###

use POSIX qw/mktime strftime/;

$before = mktime( 59, 59, 1, 11, 2, 107 );
$after  = $before + 1;

$s_before = localtime( $before );
$s_after  = localtime( $after  );
$zone_before = strftime "%Z", localtime( $before );
$zone_after  = strftime "%Z", localtime( $after  );

if( $ARGV[0] =~ /-v/ ) {
   print "\nTest if new timezone definitions are current for standard and\n";
   print "daylight saving.  Starting in 2007 it should switch on second\n"; 
   print "Sunday in March, not April in most locations in North America\n\n";
   print "$s_before $zone_before and 1 second later its $s_after $zone_after\n\n";

   $os = `uname -s`; chop( $os );
   if( $os eq "SunOS" ) {
      $x = `echo \$TZ`;
      print "local TZ environment variable: $x\n";
      system( "ls -al /etc/TIMEZONE" );
      system( "ls -al /etc/default/init" );
      system( "cat /etc/default/init" );
      }
   elsif( $os eq "Linux" ) {
      system( "ls -al /etc/sysconfig/clock" );
      system( "cat /etc/sysconfig/clock" );
      }
   elsif( $os eq "AIX" ) {
      $x = `echo \$TZ`;
      print "local TZ environment variable: $x\n";
      system( "ls -al ls /etc/environment" );
      system( "grep \"TZ=\" /etc/environment" );
      }
   print "\n";
   }

### Output
print "\n\n\n\n\n";

if ( $zone_before ne $zone_after ) {
   print "timezones standard/daylight saving time test out okay\n";
} else {
   print "**** Error ****** \n";
   print "TimeZone standard/daylight saving time doesn't test out okay\n";
}




##############################################################################
### This script is submitted to BigAdmin by a user of the BigAdmin community.
### Sun Microsystems, Inc. is not responsible for the
### contents or the code enclosed. 
###
###
### Copyright 2007 Sun Microsystems, Inc. ALL RIGHTS RESERVED
### Use of this software is authorized pursuant to the
### terms of the license found at
### [URL unfurl="true"]http://www.sun.com/bigadmin/common/berkeley_license.html[/URL]
##############################################################################
 
What about the requirement for 108993-66, particularly if you are trying to use this on Solaris 5.6? This patch,108993-66, says it is for Solaris 8 and involves a lot of basic underlying files.....
 
SamBones....

I ran this script ( in order to get prepared for the the night of March 11, I got syntax error on line 3 '(' unexpected.

Did you get any error message when you tried to run the script? I don't see the problem.

Thanks,
Sanmi
 
It would usually tell you in the readme file that accompanies the patch.

I want to be good, is that not enough?
 
Glad such a simple fix worked for everyone else. My try failed:

#uname -a
SunOS sentsvr 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-5_10
#date
Wed Mar 21 10:55:06 AKST 2007
#cd /usr/share/lib
#cp -rp zoneinfo zoneinfo.org
#cd /tmp
<downloaded 109809-06.zip>
#unzip 109809-05.zip
#cd 109809-06/SUNWcsu/reloc/usr/share/lib/zoneinfo/src
#zic northamerica
#zdump -v $TZ | grep 2007
US/Alaska Wed Mar 21 20:14:53 2007 GMT = Wed Mar 21 11:14:53 2007 AKST isdst=0
US/Alaska Sun Apr 1 10:59:59 2007 GMT = Wed Apr 1 01:59:59 2007 AKST isdst=0
US/Alaska Sun Apr 1 11:00:00 2007 GMT = Wed Apr 1 03:00:00 2007 AKDT isdst=1
US/Alaska Sun Oct 28 09:59:59 2007 GMT = Wed Oct 28 01:59:59 2007 AKDT isdst=1
US/Alaska Sun Oct 28 10:59:59 2007 GMT = Wed Oct 28 01:00:00 2007 AKST isdst=0

...maybe Alaska is not part of "northamerica"? I tried "zic pacificnew" with same result.

john
 
You ran this 10 days late? Does it really matter?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top