[pca] PCA return codes

Ron Halstead rdhalstead at gmail.com
Thu Oct 23 18:44:11 CEST 2008


If I am installing many patches using a wrapper, is the exit code
valid for the (for the want of a better word) cluster as a whole
or for each patch installed. How can I capture the exit code(s)
for pca -i missingrs?

Ron Halstead

PS Martin, your code is great. I just built a Solaris 10 U5
machine and its being patched with 69 patches as I type.
This sure beats the old way.

Martin Paul wrote:
> Fred Chagnon wrote:
>> In my wrapper script for pca, I would like to be able to determine if 
>> pca
>> finished patching completely, or if it finished prematurely, perhaps 
>> due to
>> a patch that required an immediate reconfigure reboot. Does pca have
>> different return codes for these situations? Where can I see a list of
>> possible exit situations?
>
> I've taken the simple approach now, and at last implemented that in 
> the current development release. From "pca --man":
>
>   EXIT STATUS
>     The following exit values are returned:
>
>        0  No error
>        1  Unknown error
>        2  Usage error
>        3  Reboot required to continue patch installation
>        4  Reboot required
>        5  Reboot recommended
>
> That should be enough for most wrapper scripts. The future will tell 
> whether more exit values will be needed/added.
>
> Martin.
>
>



More information about the pca mailing list