Uninstalling PATROL for VMware vSphere on UNIX
This section provides procedures that describe how to uninstall PATROL for VMware vSphere and all related log files from the UNIX environment.
Uninstalling the KM on UNIX
To uninstall individual products by using the installation utility
- Change to the Uninstall directory in your BMC product installation directory and enter the following command to launch the installation utility in uninstall mode:
./uninstall.sh - The Welcome window is displayed, and click Next.
- Select the installation directory from which you want to remove a product, and click Next.
- Select the product or products that you want to uninstall, and click Next.
- Review your selections and click Uninstall.
After the uninstallation is complete, a window is displayed that tells you whether the uninstallation was successful.
To uninstall individual products in a UNIX environment without a browser
- If you are uninstalling from a UNIX environment without a browser, perform the following steps to launch the installation utility:
- From a command line, change to the Uninstall directory and enter the following command to start the installation Web server:
./uninstall.sh -serveronly - A message box is displayed that shows the URL to use to connect to the installation Web server.
- On another machine with a browser, start the browser.
- Connect to the installation Web server from the browser to start the installation utility by using the URL that is displayed in the message box.
- From a command line, change to the Uninstall directory and enter the following command to start the installation Web server:
- The Welcome window is displayed, and click Next.
- Select the installation directory from which you want to remove a product, and click Next.
- Select the product or products that you want to uninstall, and click Next.
- Review your selections and click Uninstall.
After the uninstallation is complete, a window is displayed that tells you whether the uninstallation was successful.
Uninstalling all products while retaining log files
This task describes how to uninstall the PATROL product but retain log files, which contain history for future analysis, and configuration files for redeployment for UNIX.
To uninstall all products on UNIX
- Uninstall all products as described in To uninstall individual products by using the installation utility.
- Locate the uninstall.ctl file in the following directory.
BMCProductsInstallationDirectory/Uninstall/Install/instdata - Open the uninstall.ctl file in a text editor, and edit the /BMC/Base variable to specify the name of the directory from which you removed the products in step 1.
- Open a command line prompt.
- Change to the following directory.
BMCProductsInstallationDirectory/Uninstall/Install/ instbin - Enter the following commands:
thorinst.sh -uninstall path_to_control_file -log path_to_log_file -output path_to_output_log_file
Use the following table to help determine the log file and output log file locations:The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
UNIX example
If /opt/bmc is your product installation directory, you would change to /opt/bmc/Uninstall/Install/instbin directory and enter the following command:The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
This command removes all installation files and directories except those that are used by the utility at the time the uinstallation is performed. Log files, configuration files, and user-modified files, are also retained.
Uninstalling all products and log files
This task describes how to remove all PATROL products and related log files and configuration files from your computer on UNIX. After these files have been removed, you cannot recover them unless you have made a backup copy of the installation.
To uninstall all product and log files on UNIX
- Uninstall all products as described in To uninstall individual products by using the installation utility.
- Locate the uninstall-all.ctl file in the following directory:
BMCProductsInstallationDirectory/Uninstall/Install/instdata - Open the uninstall-all.ctl file in a text editor, and edit the /BMC/Base variable to specify the name of the directory from which you removed the products in step 1.
- Open a command line prompt.
- Change to the following directory:
BMCProductsInstallationDirectory/Uninstall/Install/instbin - Enter the following command:
(UNIX only)thorinst.sh -uninstall path_to_control_file -log path_to_log_file -output path_to_output_log_file
Use the following table to help determine the log file and output log file locations:The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
UNIX example
If /opt/bmc is your product installation directory, you would change to /opt/bmc/Uninstall/Install/instbin directory and enter the following command:
This command removes all installation files and directories. The files used to perform the installation are marked for deletion and are removed when the computer on which the products were uninstalled is rebooted.