Just to add another thought. Another great use for this would be with the bundles that are created to patch to a update level rather then doing a LiveUpgrade.<br><br>I'll try it against the Update 9 patch bundle and see what happens.<br>
<br><div class="gmail_quote">On Thu, Jun 16, 2011 at 9:37 AM, Jeff <span dir="ltr"><<a href="mailto:variverrat@gmail.com">variverrat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
This is awesome Martin, my guess is it might make a patchdiag file more accurate then the real one since it would use the info that patchadd would use to decide if it needs to be installed. <br><br>I'll give it a test and see if the results match if I installed the CPU from the bundled install scripts, but I think this is a great solution.<div>
<div></div><div class="h5"><br>
<br><div class="gmail_quote">On Thu, Jun 16, 2011 at 8:26 AM, Martin Paul <span dir="ltr"><<a href="mailto:martin@par.univie.ac.at" target="_blank">martin@par.univie.ac.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
After the idea came up to create a special patchdiag.xref which only includes the patches of a Critical Patch Cluster (CPU), I couldn't resist and gave it a try.<br>
<br>
I downloaded the "CPU OS Cluster 2011/04 Solaris 10 SPARC" and hacked up a script (mkxref, see attachment) which extracts the necessary information from the patch READMEs, patchinfo and pkginfo files and creates a patchdiag.xref file. The idea is that this can then be used with PCA to patch systems to the state of the CPU without actually having to download the +2GB file (on every system).<br>
<br>
Take care: The script is mostly untested. It's hard to verify whether the patchdiag.xref it creates is 100% correct. It works with PCA, and I've compared a few sample patches with their entries in the real xref file, and they looked fine. The Recommended/Security flags are missing (they are not in the patchinfo file), but this shouldn't matter.<br>
<br>
I'm including both the script and the patchdiag.xref file I created from the above mentioned CPU. If anybody does some experiments with it, I'd be happy to hear about it. Theoretically, one can generate xref files for any set of patches with the script, which might be of use in other regards than with the CPU as well.<br>
<font color="#888888">
<br>
Martin.<br>
</font><br><br>
<br></blockquote></div><br><br clear="all"><br></div></div>-- <br><font color="#888888">Jeff<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Jeff<br>