Sun Patch Check
Sun Patch Check is a small tool that compares the output from showrev to the Sun Solaris recommended patch list. Sun Patch Check will output a list of recommended patches that are not installed.
Contents
Requirements
Sun Patch Check requires the GNU C compiler. This is usually installed by default on a number of Linux distributions. You will also need to agree to the Sun Solve License Agreement.
Building
To build Sun Patch Check, first extract the archive and change into the source directory. Then execute the following command:
gcc -o sunpatchcheck sunpatchcheck.c
Running
Sun Patch Check maintains a database of Sun recommended patches for different versions of Solaris. When first installed this database needs to be created. To initially create and update this database, run the following command:
sunpatchcheck --update
You will need a copy of the output from the showrev command and you will need to know which version of Solaris you are checking. If the output of showrev was stored in a file called showrev.txt for a Sun Solaris 10 system, the command to check the patch level would be:
sunpatchcheck --check=showrev.txt --solaris=10
The command line arguements for Sun Patch Check are:
Command: ./sunpatchcheck [Options] Options: --update Update the recommended patch databases. --check=<filename> Check the patch level of the Solaris "showrev -p" output. The Solaris version must also be specified (see below). --solaris=<version> The Solaris version to check (10, 9, 8, 7, 2.6 or 2.5.1). An "i" can be appended to donate an Intel version (e.g. 10i). --version Display the program version. --help Display the help text you are reading now.
Downloads
Changes
Version: 1.6
Date : 13/12/2007
Author : Ian Ventura-Whiting (Fizz)
Notes : The following changes have been included in
this version:
* Increased obsoletes structure size
* Adjusted the patch reading for the new
sizes.
Version: 1.5
Date : 28/11/2007
Author : Ian Ventura-Whiting (Fizz)
Notes : The following changes have been included in
this version:
* Added a debug mode.
* Fixed memory clear bug.Version: 1.4
Date : 29/10/2007
Author : Ian Ventura-Whiting (Fizz)
Notes : The following changes have been included in
this version:
* Fixed file reading bug, reported by Edd.
Version: 1.4
Date : 29/10/2007
Author : Ian Ventura-Whiting (Fizz)
Notes : The following changes have been included in
this version:
* Fixed file reading bug, reported by Edd.
Version: 1.3
Date : 18/10/2007
Author : Ian Ventura-Whiting (Fizz)
Notes : The following changes have been included in
this version:
* Updated due to changes with Suns HTTP
server.
Version: 1.2
Date : 19/08/2007
Author : Ian Ventura-Whiting (Fizz)
Notes : The following changes have been included in
this version:
* Changelog created
* Added XML output option
* Added home URL to banner
* Added connection timeout
* Updated patch DB directory permissions.
* Fixed new Sun agreement
License
Sun Patch Check is covered by GPL version 2. You can get a copy from here.