I slight variation of Charles method is to use explorer outputs to get the individual clients patchset.
Collect explorers to your patchserver.
Run pca with
cd $your-patchdir
pca -d  -f ${EXPLORER_PATH}/${HOST}  missingrs

pca gather info about a client using
/usr/bin/pkginfo -x
/usr/bin/showrev -p
/usr/bin/uname -a
And it will find them all in an explorer output.

Another way of doing the same would be to collect pkginfo showrev and uname and use them with pca for collecting patches for a client.
Instead of pca running those commands on the local client.
A simple cronjob on each client that copies output of these 3 commands to the "pca-server".
Run pca with
pca -d  -f ${Pkginfo-Uname-Showrev-dir}/${HOST} missingrs

- Roland



On 19/10/11 04:17 AM, charles.witt....@dcpds.cpms.osd.mil wrote:

Lisa,

This is one method that fits my case.

 

One method is to run “pca --noheader | cut -d ' ' -f 1 > $generatedlist” on each patch client which will generate a list of required patches.

 

Merge the contents of the required patch list into one file with something like “sort -ui Missing.pca.txt/ConsolidatedMissing.pca.txt | uniq > SortedUniqueConsolidatedMissing.pca.txt”.

 

You would execute something like: “pca -d RequiredPatchList” on your patch server to download required patches from Oracle.  The “d” will keep the patches.

 

Then you have to figure out how to get the patches to each patch client.  I have BASH scripts that use public/private SSH keys, Expect, SSH, and SCP.  Man pca has one or more other methods.

 

Then execute “pca -i” on each patch client.  That is the summary of one method.  I left details out.

 

Man pca will give some ideas.  You need to experiment with a couple of servers to determine what works best in your case.

 

Thanks,

Charles W. Witt

Contractor

STG Inc.

DCPDS Arcsight Logger/Quality Center/Solaris/Web Support

1777 N.E. Loop 410, Suite 300

San Antonio, TX 78217-5216

Phone: (210)581-6227

Cell: (210)787-2734

charles.witt....@dcpds.cpms.osd.mil

Quality Center: qcsupp...@dcpds.cpms.osd.mil

Solaris: solarissupp...@dcpds.cpms.osd.mil

Web: web.supp...@dcpds.cpms.osd.mil

 

From: pca-boun...@lists.univie.ac.at [mailto:pca-boun...@lists.univie.ac.at] On Behalf Of Becktold, Lisa M. (LARC-B7)[Chugach Federal Solutions, Inc.]
Sent: Tuesday, October 18, 2011 11:30 AM
To: pca@lists.univie.ac.at
Subject: [pca] Setting up PCA patch server

 

Hi,

 

We have started using pca to patch our servers.    It’s been working very well, and we’d like to refine our setup.

 

Instead of each server accessing support.oracle.com, we’d like to set up an internal pca patch server.  The patch clients should access this internal patch server, and NOT go outside our internal network to download patches.

 

I’m a bit confused about what should reside on that internal patch server.  Should I download the latest recommended patch cluster and associated patchdiag.xref file, and place it on the internal patch server?

 

If the full recommended patch cluster is located on the patch server, then there the patch client doesn’t need to go outside our internal network and access support.oracle.com, right?

 

The patch server must either share the patch directory via NFS, or offer it via http or ftp, correct?

 

Lisa

 

Lisa Becktold

System Administrator

Chugach Federal Solutions, Inc.

NASA Center for AeroSpace Information Contract

Phone:       443 995 5805

 

  • [pca] Setting... Becktold, Lisa M. (LARC-B7)[Chugach Federal Solutions, Inc.]
    • Re: [pca... Charles.Witt.CTR
      • Re: ... Becktold, Lisa M. (LARC-B7)[Chugach Federal Solutions, Inc.]
        • ... Charles.Witt.CTR
        • ... Martin Paul
          • ... Thomas Gouverneur
      • Re: ... Roland Soderstrom
        • ... Glenn Satchell
          • ... Becktold, Lisa M. (LARC-B7)[Chugach Federal Solutions, Inc.]
    • Re: [pca... Thomas Gouverneur
    • Re: [pca... Thomas Gouverneur

Reply via email to