How to check which type of Sun Java Web server installation I got ?
Wednesday Jun 11, 2008
We sometimes got a Sun Java Web server installation, but there are two types of installations - standalone and package based. How to tell which type is the one we got in our systems ?
1. You can easily tell by using the pkginfo commands:
e.g. I got a 6.1 JES package-based installation at below,
apple:/export/home/iws7.0u2/https-apple.asia.sun.com/config> pkginfo -l | grep SUNWwbsvr
BASEDIR: /export/home/opt/SUNWwbsvr-JES3
BASEDIR: /opt/SUNWwbsvr
PKGINST: SUNWwbsvr
BASEDIR: /export/home/opt/SUNWwbsvr-JES3
The package name for 6.1 JES package-based installation is called SUNWwbsvr .
For 7.0, it is called SUNWwbsvr7, e.g.
syntax:/> pkginfo -l | grep SUNWwbsvr
PKGINST: SUNWwbsvr7
PKGINST: SUNWwbsvr7-cli
PKGINST: SUNWwbsvr7-cli.2
PKGINST: SUNWwbsvr7-dev
PKGINST: SUNWwbsvr7-dev.2
PKGINST: SUNWwbsvr7.2
PKGINST: SUNWwbsvr7x
So, if you do not have any above outputs for SUNWwbsvr7 or SUNWwbsvr , then you are using a standalone installations.
2. You can tell from the start script of the web server instance, e.g.
For 7.0 web server,
syntax:/var/opt/SUNWwbsvr7/https-syntax.asia.sun.com/bin> grep mps startserv
SERVER_LIB_PATH="${SERVER_LIB_PATH}:/usr/lib/mps/secv1:/usr/lib/mps:/usr/lib/mps/sasl2"
SERVER_LIB_PATH_64="${SERVER_LIB_PATH_64}:/usr/lib/mps/secv1/64:/usr/lib/mps/64:/usr/lib/mps/sasl2/64"
(the above is for a JES package-based installation, you can see what is inside above mps dir, e.g.
syntax:/var/opt/SUNWwbsvr7/https-syntax.asia.sun.com/bin> ls /usr/lib/mps/secv1
64 libfreebl_32int_3.so libplds4.so
cpu libjss3.so libsmime3.so
libfreebl_32fpu_3.chk libjss4.so libsoftokn3.chk
libfreebl_32fpu_3.so libnspr4.so libsoftokn3.so
libfreebl_32int64_3.chk libnss3.so libssl3.so
libfreebl_32int64_3.so libnssckbi.so sparcv9
libfreebl_32int_3.chk libplc4.so
)
For 6.1 JES package-based installation,
apple:/export/home/opt/SUNWwbsvr-JES3/https-apple.asia.sun.com> grep mps start
MPS_LIB_DIRS=/usr/lib/mps/secv1:/usr/lib/mps:/usr/lib/mps/sasl2
(same mps in the start script)
If it is a standalone installation, then you will not find any mps in the start script, e.g.
apple:/export/home/iws7.0u2/https-apple.asia.sun.com/bin> grep mps startserv
apple:/export/home/iws7.0u2/https-apple.asia.sun.com/bin>
Hope the above will help you identify the right type of your existing installations, then you can download the right type of SP or latest patches to do any upgrade properly.










