vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am new in SUN. I know SUN have the patch called 8_Recommended and it is accumulative. As and when, SUN will have a new patch level. What is the command to know my machine is at what level? I have read some newsgroup archives, "showrev -p" will show me the patch number and the revision number, but I don't know how updated is my 8_Recommended level. Any idea? Thanks in advance. |
| |||
| "Rickie" <rickie_wong@hotmail.com> writes in comp.sys.sun.admin: |I am new in SUN. I know SUN have the patch called 8_Recommended and it is That is a collection of patches - if you read the README file you'll see a list of each patch included. Each patch id is in the form XXXXXX-YY where XXXXXX is the patch id and YY is the revision. You can compare each one against the revision shown in "showrev -p" output. (Or you can use one of the tools from the SunSolve website like PatchDiag or PatchPro to make this easier and more automated.) -- __________________________________________________ ______________________ Alan Coopersmith alanc@alum.calberkeley.org http://www.CSUA.Berkeley.EDU/~alanc/ aka: Alan.Coopersmith@Sun.COM Working for, but definitely not speaking for, Sun Microsystems, Inc. |
| ||||
| > |I am new in SUN. I know SUN have the patch called 8_Recommended and it is > > That is a collection of patches - if you read the README file you'll see > a list of each patch included. Each patch id is in the form XXXXXX-YY > where XXXXXX is the patch id and YY is the revision. You can compare > each one against the revision shown in "showrev -p" output. (Or you can > use one of the tools from the SunSolve website like PatchDiag or > PatchPro to make this easier and more automated.) I wrote a script to compare the latest recommended patch bundle to the current system to optimize installation time. If you're close to current on the patch bundle, it takes a while for the system to recognize that you have most of the patches loaded. This script simply trims the patch_order file by dropping any patches that are currently listed in "showrev -p". Installation of the patch cluster would go like: cd /tmp unzip .../8_Recommended.zip cd 8_Recommended ..../filter_patches ../install_cluster [Reboot] Steve filter_patches: #!/usr/bin/perl # # Filter the patch_order files from a Recommended patch bundle to # not try to install patches that are already installed. This will # speed up the install since it takes so long for install_cluster # to error out on a patch that is already installed on the system. $ENV{PATH}="/usr/bin"; # # First build a table of all the latest patch rev on the system # open (SHOWREV, "showrev -p|"); while (<SHOWREV>) { chop; $patch = (split)[1]; ($patchNum, $rev) = split(/-/, $patch); if ($rev > $installedRev{$patchNum}) { $installedRev{$patchNum} = $rev; } } close (SHOWREV); open (PATCHLIST, "patch_order"); open (NEWLIST, ">patch_order.new"); while ($patch = <PATCHLIST>) { chop ($patch); ($patchNum, $rev) = split(/-/, $patch); if ($installedRev{$patchNum} < $rev) { print NEWLIST "$patch\n"; } } close (PATCHLIST); close (NEWLIST); rename ("patch_order", "patch_order.orig"); rename ("patch_order.new", "patch_order"); |