vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Got tired of doing this by hand ... here's a script in Perl that will tell you whether your machine is patched for "DST 2007" by checking patch revisions (not clock behavior). Use and redistribute freely. It checks patchlevel for "all known timezones," then if that fails, checks in turn for USA, Canada, western Australia and the Bahamas. I didn't break Canada out by province, but took the most restrictive view of "all of Canada" for diagnostic purposes. It works (I believe) for S8, S9 and S10. If you get a result you believe is incorrect on your system, please let me know. http://www.panix.com/~baldwin/dst_test_solaris.pl -- _+_ From the catapult of |If anyone disagrees with any statement I make, I _|70|___ \ / baldwin@panix.com|to deny under oath that I ever made it. -T. Lehrer ***~~~~----------------------------------------------------------------------- |
| |||
| > It works (I believe) for S8, S9 and S10. If you get a result you > believe is incorrect on your system, please let me know. > > http://www.panix.com/~baldwin/dst_test_solaris.pl J.D. Thank you for valuable contribution! Just tested script on SF x4200 with Solaris 10 11/06 (not patched). Result: ===================== Unknown architecture i386 , should be x86 or sparc ===================== After replacing all 'x86' to 'i386' works fine: ================================================== ========= This system is NOT patched for all known timezones, because: need revision 04 of patch 122033, found only 02 This system is patched for all USA timezones ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ is all I needed This system is NOT patched for all Canadian timezones, because: need revision 03 of patch 122033, found only 02 This system is NOT patched for all Western Australia timezones, because: need revision 03 of patch 122033, found only 02 This system is NOT patched for the Bahamas timezone, because: need revision 04 of patch 122033, found only 02 ================================================== ========= Regards, Sergey Galitskiy |
| |||
| In the previous article, <2bagio@gmail.com> wrote: > Just tested script on SF x4200 with Solaris 10 11/06 (not patched). > Result: > ===================== > Unknown architecture i386 > , should be x86 or sparc > ===================== Thank you ... I don't run x86 solaris, so I just thought uname -p popped back "x86" or "x86_64." I've taken i386 into account now (and chomped the return value from uname). -- _+_ From the catapult of |If anyone disagrees with any statement I make, I _|70|___ \ / baldwin@panix.com|to deny under oath that I ever made it. -T. Lehrer ***~~~~----------------------------------------------------------------------- |
| |||
| On Sat, 10 Mar 2007 00:06:02 +0000 (UTC) INVALID_SEE_SIG@example.com.invalid (J.D. Baldwin) wrote: > Thank you ... I don't run x86 solaris, so I just thought uname -p > popped back "x86" or "x86_64." I've taken i386 into account now (and > chomped the return value from uname). Nice script! It needs just one more correction: change the "if" statement on line 174 to "elsif". -- Stefaan A Eeckels -- "Technically, Windows is an 'operating system,' which means that it supplies your computer with the basic commands that it needs to suddenly, with no warning whatsoever, stop operating." -Dave Barry |
| ||||
| In the previous article, Stefaan A Eeckels <hoendech@ecc.lu> wrote: > Nice script! It needs just one more correction: change the "if" > statement on line 174 to "elsif". That's what I get for hasty cut-and-paste. (Testing worked because logically the if is equivalent to elsif; still, the elsif is clearly better practice.) Thanks again. -- _+_ From the catapult of |If anyone disagrees with any statement I make, I _|70|___ \ / baldwin@panix.com|to deny under oath that I ever made it. -T. Lehrer ***~~~~----------------------------------------------------------------------- |