HP-UX Directory Server 8.1 installation guide

4.4.2 Uninstalling the HP-UX Directory Server
To uninstall HP-UX Directory Server entirely, perform the following steps:
CAUTION:
This procedure completely removes the Directory Server product and all data served by the
Directory Servers on the host.
1. Remove all the Directory Server instances. For example, you can use the following script,
entering the appropriate password (for admin-password) and actual Directory Server
instances (for instance1 instance2 instance3 ...):
IMPORTANT:
If one of the Directory Server instances hosts the o=netscapeRoot suffix, make sure you
specify its name last in the list and that no other servers on other hosts are managed by this
configuration directory.
cd /opt/dirsrv/
ADMINPASS="admin-password"
# Specify the instance names here. Important, if one of these
# servers holds the o=netscapeRoot suffix, make sure it is the
# last one on the list, and that no other servers
# on other hosts are managed by this configuration directory.
instanceNames="instance1 instance2 instance3 ..."
for instanceName in $instanceNames
do
tmp="$(echo "$instanceName" | cut -d"-" -f 2)"
/opt/dirsrv/sbin/ds_removal -s "$tmp" -w "$ADMINPASS"
done
2. Stop the Administration Server.
# /opt/dirsrv/sbin/stop-ds-admin
3. Use swremove to uninstall the product bundle:
# /usr/sbin/swremove HPDirSvr
4. Use the following script to clean up any remaining run-time or user-generated files. These
files include local configuration caches, SSL certificate files, and so forth.
CAUTION:
Before removing directories, inspect them to ensure that they do not include any unexpected
files that you might not want removed.
for path in /opt/dirsrv /var/opt/dirsrv /etc/opt/dirsrv
do
find $path -type f | xargs ll -d
done
#
# WARNING: Validate no unexpected files exist before
# running the rm command below.
#
cd /
rm -rf /opt/dirsrv /var/opt/dirsrv /etc/opt/dirsrv
4.4 Uninstalling Directory Server 41