eDirectory 8.8 SP3 Unattended Upgrade and Uninstallation on UNIX

0 Likes
over 12 years ago

Table of Contents:



Introduction

Unattended upgrade of eDirectory on UNIX

     Health Check of eDirectory instances before upgrade

     Upgrading of eDirectory 8.8 SP3 packages

     Update of environment variables

     Upgrading eDirectory instances using ndsconfig

Unattended Uninstallation of eDirectory on UNIX

     Removal of all instances of eDirectory

     Uninstall of eDirectory packages


Introduction



eDirectory is an infrastructure component being used in many of the Novell products. eDirectory support switches and options that facilitate the unattended Upgrade and Uninstallation on UNIX.

This paper discusses the features and the configuration necessary to perform an unattended Upgrade and Uninstallation of eDirectory on UNIX. This feature is supported in the eDirectory 8.8 SP3 release and onwards.

Unattended upgrade of eDirectory on UNIX



On UNIX, eDirectory provides switches and options along with the install script and configuration utility that facilitates the unattended upgrade. The following sections discuss various steps for unattended eDirectory upgrade on UNIX:

Health Check of eDirectory instances before upgrade



Health check of all the root instances planned for upgrade using ndscheck manually.

export LD_LIBRARY_PATH, SHLIB_PATH and LIBPATH to the <untarred location of eDirectory>/eDirectory/setup/utils and run ndscheck from the following location <untarred location of eDirectory>/eDirectory/setup/utils using one of the below commands:



<untarred location of eDirectory>/eDirectory/setup/utils/ndscheck -a <user name> -w passwd --config-file <nds.conf with absolute path>

<untarred location of 88SP3>/eDirectory/setup/utils/ndscheck -a <user name> -w env:<environment variable> --config-file <nds.conf with absolute path>

Passing the password through environment variable

<untarred location of 88SP3>/eDirectory/setup/utils/ndscheck -a <user name> -w file:<filname> --config-file <nds.conf with absolute path>

Passing the password through file





Any one of the above can be used in the automated script for the health check.

example:

/Builds/eDirectory/utils/ndscheck -a admin.novell -w n
/Builds/eDirectory/utils/ndscheck -a admin.novell -w env:ADM_PASWD
/Builds/eDirectory/utils/ndscheck -a admin.novell -w file:adm_paswd





For further details of ndscheck refer to man pages of ndscheck.

Upgrading of eDirectory 8 8 SP3 packages



Run nds-install script to upgrade the packages as below:

nds-install -u -c server -c admutils -i -j 



Upgrade of individual components is also supported (either Server or Administration Utilities). If individual component is being specified, then upgrade server followed by Administration Utilities.

Update of environment variables



The following environment variables have to be updated:

ATH=/opt/novell/eDirectory/bin:/opt/novell/eDirectory/sbin:$PATH

LD_LIBRARY_PATH=/opt/novell/eDirectory/lib:/opt/novell/eDirectory/lib/nds-modules:/opt/novell/lib:$LD_LIBRARY_PATH

MANPATH=/opt/novell/man:/opt/novell/eDirectory/man:$MANPATH

TEXTDOMAINDIR=/opt/novell/eDirectory/share/locale



Upgrading eDirectory instances using ndsconfig



Upgrading eDirectory using ndsconfig for all the root instances using below commands:

ndsconfig upgrade -a <user name> -w passwd -c --config-file <nds.conf with absolute path>

ndsconfig upgrade -a <user name> -w env:<environment variable> -c --config-file <nds.conf with absolute path>

Passing the password through environment variable

ndsconfig upgrade -a <user name> -w file:<filename with absolute/relative path> -c --config-file <nds.conf with absolute path>

Passing the password through file




Any of the above can be used in the automated script for the eDirectory upgrade.

example:

ndsconfig upgrade -a admin.novell -w n -c –config-file
/etc/opt/novell/eDirectory/conf/nds.conf

ndsconfig upgrade -a admin.novell -w env:ADM_PASWD -c --config-file
/etc/opt/novell/eDirectory/conf/nds.conf

ndsconfig upgrade -a admin.novell -w file:/Builds/88SP3/adm_paswd -c --config-file
/etc/opt/novell/eDirectory/conf/nds.conf




For further details of ndsconfig refer to man page of ndsconfig



Unattended Uninstallation of eDirectory on UNIX



Removal of all instances of eDirectory



Removal of all instances of eDirectory using ndsconfig:

ndsconfig rm -a <user name> -w passwd -c

ndsconfig rm -a <user name> -w env:<environment variable> -c

Passing password through environment variable

ndsconfig rm -a <user name> -w file:<filename with absolute/relative path> -c

Passing password through file




Any one of the above can be used in the automated script for the DS upgrade.


example:

ndsconfig rm -a admin.novell -w n -c
ndsconfig rm -a admin.novell -w env:ADM_PASWD -c
ndsconfig rm -a admin.novell -w file:/Builds/88SP3/adm_paswd -c




Uninstall of eDirectory packages


Run nds-uninstall script to remove the eDirectory packages as below:
nds-uninstall -u -c server -c admutils  



Uninstall of individual components is also supported (either Server or Administration Utilities). If an individual component is specified, then follow the order of the Administration Utilities followed by Server.




Labels:

How To-Best Practice
Comment List
Anonymous
Related Discussions
Recommended