Cleanup Script for InfoScale Windows 7.x and later

book

Article ID: 100015815

calendar_today

Updated On:

Description

Note: This cleanup script can be used only on Windows OS platforms.

Solution

This script can be used to remove fresh installations as well as upgraded clusters. The cleanup.bat script removes all the InfoScale component packagescurrently installed on a system. It deletes all installed files, directories, registry keys, and Windows Add/Remove Program entries for all the related installed packages.

When to use this script?
Veritas recommends to perform uninstall using Windows Add/Remove Programs. The cleanup script should only be used in case of an incomplete or failed product uninstallation.

**Before you run this script**

  • Contact Veritas Technical Support before you use this script on production systems.
  • Ensure  the logged-in user has local Administrator privileges on the system where you run the cleanup script. The user account must be a domain user account.
  • Make a back up copy of the cluster configuration files.

Back up the following files from the %vcs_home%\conf\config directory:

  • main.cf
  • types.cf

%vcs_home% is the product installation directory for Veritas Cluster Server (VCS): typically, C:\Program Files\ Veritas\Cluster Server.

  • Reboot the system before launching the cleanup script. This ensures that there are no open handles on any of the files and directories the script deletes.
  • Close all the running applications on the system.
  • Copy the cleanup script package to a local disk on the cluster node and then run the script from that location.
  • The script detects the product installation directory using the following registry key: HKLM\Software\Veritas\VPI

Note: The script will prompt for the product installation directory path if the registry key does not exist.

  • The script asks for a confirmation to remove the infrastructure components used by the product. The infrastructure components are shared and used by the following Veritas products:
    • InfoScale Operations Manager
    • Virtual Business Services
    • VRTSPerl

The cleanup.bat script performs the following actions

  1. Prompts the user with: "Do you want to run the cleanup script? Yes (Y) / No (N)/ Yes to All (A)."

  • You can choose "Yes (Y)" to allow the script to start cleanup script.
  • You can choose the "Yes to All option (A)" option. This causes the script to remove all infrastructure components without confirmation.

  2. Stops and deletes services for the InfoScale products.       

Note: If the NetBackup services are running on the system, they are not stopped automatically. To stop the NetBackup services, click Enter and re-run the cleanup script.

  3. Executes Un-Install Custom Actions.
  4. Deletes all installed files, directories, registry keys, and Windows Add/Remove Program entries for all the related installed packages.
  5. Deletes all Path and Environmental Variable entries for all the related installed packages.
  6.The script creates a CleanUplogs directory at %AllUsersProfile%\Veritas.

The uninstallation logs are stored in this directory.

  • Cleanup.log: Flow of cleanup script
  • stop_services.log: Status of Services
  • CleanUpEngine.log: Cleanup of files, registry and directories
  • \SharedMSICleanUplogs: Contains logs of infrastructure shared components MSIs
  • Error.txt: Errors which occurred while deleting files, registries, directories, etc. as not found or in-use.
  • cleanvxio.txt: For vxio cleanup
  • instmpio.txt: For DSM (Device Specific Module) cleanup

After you run this script

  • Reboot the system after the script run is complete.
  • The cleanup script does not remove the <InstallDir>\Security folder as this might be used by any EAT (Embedded Authentication) on the system. This is according to the design, and will not cause any issues while reinstalling Veritas Authentication on the system.
  • The cleanup script may fail to remove one or more environment variables on the system. You must manually remove the product specific environment variables before you install the product on the system again.
  • During the installation, if you had selected the Custom Installation option, then after running the cleanup script, the <InstallDir>\Veritas Shared\VPI folder may not be deleted. This does not affect the re-installation of the product.
  • The cleanup script removes only supported products, and related VPI files. It does not remove the <InstallDir>\Veritas Shared\VPI folder completely, as the other Veritas products might be installed using VPI. Similarly, VPI deletes only supported products, and related VPI keys, from the HKLM\Software\<Wow6432Node>\Veritas\VPI key for the same reason. The HKLM\Software\<Wow6432Node>\Veritas\VPI\Components key retains component IDs for infrastructure components.​

Issue/Introduction

;This article ​provides details of the cleanup script which can be used to completely remove the product installation from a system.

Attachments

cleanUpScript.zip get_app