ZENworks includes a uninstall program (zlm-uninstall) to remove the ZENworks services, Object Store, and other files from a server. If for some reason the uninstall program cannot remove the ZENworks server software, you can manually uninstall the software. The following sections provide instructions for uninstalling the software with the uninstall program or manually.
If your ZENworks Linux Management system has secondary servers, you must uninstall the secondary servers before uninstalling the primary ZENworks server. Otherwise, during uninstallation of the secondary servers, you receive an error message concerning eDirectory that is not applicable because eDirectory was already removed during uninstallation of the primary ZENworks server.
The following sections contain more information:
Make sure you know the password for the ZENworks Administrator account.
Log in to the ZENworks Server as root.
Run the following command:
/opt/novell/zenworks/bin/zlm-uninstall
Follow the prompts.
Make sure you know the password for the ZENworks Administrator account.
Log in to the Primary ZENworks Server as root.
Run the following command:
/opt/novell/zenworks/bin/zlm-config --remove-secondary-server=secondary_server
where secondary_server is the full NDS context of the secondary server.
The server is usually in the system context. For example, if your server name is ZEN216, the full command is:
/opt/novell/zenworks/bin/zlm-config --remove-secondary-server=zen216.system
Stop the services on the ZENworks Server. If necessary, see Section 5.1.3, Stopping a ZENworks Service.
Remove the following directories:
Edit /etc/crontab to remove the lines that contain ZENworks.
(Conditional) If you are removing a secondary server, remove the secondary server object from the Object Store and Data Store. To do so:
Create a script file like the following one to create a CLASSPATH variable that includes all of the paths to the ZENworks classes:
#!/bin/sh CLASSPATH='' for i in ‘ls /opt/novell/zenworks/java/lib/*.jar‘ ; do CLASSPATH="$i:$CLASSPATH" ; done ; for i in ‘ls /opt/novell/extend/Common/WSSKD/lib/*.jar‘ ; do CLASSPATH=$i:$CLASSPATH" ; done ; echo $CLASSPATH
Use the following command to remove the ZENworks secondary server object:
/opt/novell/zenworks/lib/java/bin/java -classpath $CLASSPATH com.novell.zenworks.datamodel.extensions.installer.LDAPInstaller uninstall admin_password
Replace admin_password with the ZENworks Administrator account password.
(Conditional) If you are removing the primary server and are using a local PostgreSQL database for the ZENworks Data Store, remove the database. To do so, use the following commands:
/etc/init.d/postgresql start, su - postgres , dropdb zenworks , dropuser zenadmin , /etc/init.d/postgresql stop
Remove the ZENworks Object Store. To do so, use the following commands:
ndsconfig rm -F -a admin.system -w admin_passwordrm -rf /var/nds/dibrm /etc/nds.conf
Replace admin_password with the ZENworks Administrator account password.
Remove the ZENworks RPM packages and the Dell Update Packages, if necessary. To do so:
Use the following command to list the package names:
rpm -qa | grep novell-zenworks
Remove each of the packages individually using the following command:
rpm -e | package_name
or
Use the following simple script to remove multiple packages:
for i in ‘rpm -qa | grep novell-zenworks‘ ; do rpm -e $i ; done
Because of package dependencies, you might need to run this script multiple times to remove all packages. You can verify that all packages have been removed by running the command in Step 7.a.
Remove the following directories: