[pca] Generate List
Gehring, Andrew
Andrew.Gehring at nrel.gov
Tue Mar 10 18:43:43 CET 2009
Unfortunately, the system patching was accomplished via smpatch...
Thanks,
Andrew
-----Original Message-----
From: pca-bounces at lists.univie.ac.at [mailto:pca-bounces at lists.univie.ac.at] On Behalf Of Ben Taylor
Sent: Tuesday, March 10, 2009 11:28 AM
To: PCA (Patch Check Advanced) Discussion
Subject: Re: [pca] Generate List
On Tue, Mar 10, 2009 at 12:36 PM, Gehring, Andrew
<Andrew.Gehring at nrel.gov> wrote:
> I've searched the archive, possibly using bad keywords...
>
>
>
> However, I'm trying to find a way to generate a list of patches installed on
> a system, to use to patch another system so the they match "patch level"
Assuming you have used pca with the "host" system, and have not cherry
picked patches, you should be able to use the patchdiag.xref file that
you used to install those patches, on the target system.
If you're not sure, then you need to do your homework as follows:
./pca -l all 2>&1 | egrep -v "NOT FOUND IN CROSS REFERENCE
FILE|^Using|^Host|^List|^Patch|^------" | awk '{ printf "%s-%s\n", $1,
$4 }' > host-patchlist.txt
will generate the list of patches using the patchdiag.xref on the system you
want to replicate. (there may be an option to not print the verbose
headers, didn't see it)
Then push the same patchdiag.xref file to the new system and run that same
command, as well as
./pca | awk '{ printf "%s-%s\n", $1, $4 }' > target-need-patchlist.txt
which will generate a list of the patches from the patchdiag.xref file
that you need
to install.
Then cross reference the files, and you should be able to generate a
list of patches
you want pca to install.
More information about the pca
mailing list