[pca] FW: Request logging facility
Open Source Rocks
opn.src.rocks at gmail.com
Mon Jan 26 16:49:25 CET 2009
Hi,
I do the same with my wrapper for PCA. I send the output to /var/log/installpatches.log and filter only the patch being installed and any error messages to the console, thus avoiding a lot of text from being spit on the console while the engineer is installing.
Adding time stamps before and after the patch installation gives us the estimate of time required to run similar patch installs and also provides a time line of which patch was installed when, thus keeping track of any patches which might have messed up the Apps on the server.
-GGR
Rajiv G Gunja
----- Original Message -----
From: "Martin Paul" <martin at par.univie.ac.at>
To: "PCA (Patch Check Advanced) Discussion" <pca at lists.univie.ac.at>
Sent: Monday, January 26, 2009 9:24:59 AM GMT -05:00 US/Canada Eastern
Subject: Re: [pca] FW: Request logging facility
Hi,
>> Would it be possible to add logging to pca, IE- when a recommended
>> cluster patch set is run, it creates a log file in
>> /var/sadm/install_data. Can pca be altered to create a log file with
>> all the patches that were installed in a similar fashion ?
pca sends messages for every installed patch to syslog, you should find
the ouput in /var/adm/messages. This is sufficient in most cases.
If you want more detailed log output, I would use something like this to
redirect pca's complete output to a logfile:
pca --install ... 2>&1 | tee -a /var/tmp/pca-install.log
This will show the complete output from pca on screen, as usual, but
also append it to the file /var/tmp/pca-install.log.
Martin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.univie.ac.at/mailman/private/pca/attachments/20090126/f667d956/attachment.html
More information about the pca
mailing list