Home

vxpref.cgi




Purpose

vxpref.cgi is a CGI script written in ksh to analyze the patchdiag.xref file from Oracle for Solaris patches.

Recommended usage:

Run vxpref.cgi on a web server on your local installation server (or on a web server with access via NFS or something similar to the installationserver with the patches).



Back to top

License


# CDDL HEADER START
#
# The contents of this file and the script are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END


Back to top

History


Version
Releasedate
         Description
0.0.6
12/08/11
changed the script to use the Oracle web site instead of the Sun web site
added some functionality
0.0.5
06/13/05
corrected a bug in the handling of obsolete patches
0.0.3
04/04/05
made the local patch directory variable
0.0.2
03/07/05
initial public release



Back to top

Operating system


Solaris, Linux, or any other OS with a working kornshell interpreter and a web server



Back to top

Language / type


CGI Script written in Kornshell Script



Back to top

Prerequisites

a running webserver (e.g. apache) on Solaris or any other supported OS, ksh, awk, wget, wc



Back to top

Usage

Copy the the script vxpref.txt to the cgi-bin directory of your web server and rename it to vxpref.cgi.

Make sure, that awk, wget, and wc are configured and can be executed by the userid that is used for running the webserver.
Create the directory /export/install/tools (or change the variable PATCHDIAG_XREF_FILE_DIR in the script.

Create the directory /export/install/All_Patches (or change the variable LOCAL_PATCH_DIRECTORY in the script)
Note that this task is not really necessary anymore because the local patch directory is now configurable using the web interface.

Your webserver must have read access for the directory /export/install/All_Patches and write access for the directory /export/install/tools.

Call vxpref.cgi using the URL http://<your_webserver_hostname>/cgi-bin/vxpref.cgi

Check the prerequisites for the script using the button "Check Prerequisites". If everything is okay download the current version of the patchdiag.xref file using the "Download" button.



Back to top

Examples

Unfortunately I can not run cgi scripts written in kornshell on this webserver. So here is only an example screen shot:

vxpref.cgi
      screenshot



Back to top

Notes

Unfortunately I'm not allowed to execute CGI scripts on this webserver. Therefor you must download and install the script to see how it works.

Please note that you must login to support.oracle.com to download patches with this script.

A login to 
support.oracle.com is NOT necessary to download the patch summary file (patchdiag.xref). The readme files for the patches are also viewable without login to support.oracle.com.


Links


patchdiag.xref field descriptions

weSunsolve.net (Comunity sunsolve)

Patch Check Advanced (pca)

Oracle Support portal



Back to top

Download

Download vxpref.cgi

Note: rename the script vxpref.txt to vxpref.cgi after downloading.


Back to top