<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Arial","sans-serif";
color:#091FBF;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF">I’ve never tried the syntax you are trying. Looking at the usage page (--help) I see “file name: patchlist.txt” which I think is just a list of one patch
number per row of text, like this:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF">123456-78<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF">234567-89<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF">But the output from (--list) contains additional text, like this:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF">Using /var/tmp/patchdiag.xref from Jul/28/14<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF">Perhaps the solution could be to implement a third type of report? We already have two types (–list and –listhtml) perhaps there should be a third option to list
only the patches and not all the other data? That way it would be usable in the way you are attempting?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF">What I do for this issue is different. I don’t try to re-use the report output as subsequent input. I just keep the files for the --fromfiles=DIR around for reuse.
I run the report with –list then when I’m ready to download patches I remove the –list and put –download in its place; rerunning the same command. Since I use the same --fromfiles=DIR each time it downloads the correct patches for that same report list which
was previously generated.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="color:#091FBF">Neil G. Brookins<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#091FBF">Identity and Authentication Solutions - IT Global Solutions<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#091FBF">Towers Watson<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#091FBF">1500 Market Street | Philadelphia, PA 19102<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#091FBF">Phone: +1 215 246 6046<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#091FBF"><a href="mailto:neil.brookins@towerswatson.com">neil.brookins@towerswatson.com</a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#091FBF"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> pca [mailto:pca-bounces@lists.univie.ac.at]
<b>On Behalf Of </b>Gordon Morrison<br>
<b>Sent:</b> Tuesday, July 29, 2014 7:07 AM<br>
<b>To:</b> pca@lists.univie.ac.at<br>
<b>Subject:</b> [pca] Question: Downloading patches to a central server using pca-generated patch reports<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I have recently discovered PCA and it's great at generating patch reports, but how can I use those reports to download patch bundles for various servers?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">We download weekly explorers from all of our Solaris servers to a Linux jumpbox for safekeeping, and I create patch reports for all of our Solaris servers from those explorers using PCA on the Linux box.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">How can I download the patches required for a particular Solaris server to the Linux box using the patch report generated by PCA on the Linux box?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I've been playing with command line options and env variables, and I can’t get the syntax right
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">e.g. :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">$ /usr/local/scripts/PATCHING/pca /mssunix/pca/patch-reports/<pca-report>.txt --user=<user> --passwd=<password><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">ERROR: Unknown operand: Using<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">(PCA_PATCHDIR is set in the environment)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">The "Using" obviously comes from the first line of the patch report, but how can I use a patch report to generate a list of patches to download for a particular server? This seems to me like an obvious way to do this,
I just can't get the syntax right.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">PCA seems so great in other respects, I'd be surprised if it couldn't do this. Do I have to manually generate a list of patches from the patch report? (I could script it, but why re-invent the wheel?)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Gordon<o:p></o:p></span></p>
</div>
<span style="FONT-FAMILY: 'Arial'; COLOR: gray; FONT-SIZE: 7.5pt"><em>Notice of Confidentiality</em><br>
This transmission contains information that may be confidential. It has been prepared for the sole and exclusive use of the intended recipient and on the basis agreed with that person. If you are not the intended recipient of the message (or authorized to receive
it for the intended recipient), you should notify us immediately; you should delete it from your system and may not disclose its contents to anyone else.<br>
<br>
</span><span style="FONT-FAMILY: 'Arial'; COLOR: gray; FONT-SIZE: 7.5pt"><br>
This e-mail has come to you from Towers Watson Delaware Inc. or Towers Watson Pennsylvania Inc.<br>
</span>
</body>
</html>