HCL Workload Automation, Version 9.4

Uninstalling manually on Windows operating systems

Steps to take when manually uninstalling the HCL Workload Automation master domain manager on a Windows operating systems.

Run the following steps to manually remove a HCL Workload Automation master domain manager.
Note: If your RDBMS is based on Oracle, run the showDataSource wastools command before uninstalling the master domain manager and take note of the net service name used for your database.
1. Shut down all HCL Workload Automation operations and processes
  1. On a system prompt, go to the HCL Workload Automation installation path.
  2. Set the environment by running the twa_env.cmd command.
  3. Stop the dynamic agent by running the ShutDownLwa command.
  4. Stop netman, conman and their child processes by running the conman “shut;wait” command.
  5. Stop the event process by running the conman stopmon command.
  6. Stop the application server process by running the conman stopappservman command.
  7. In the task manager, verify that the following processes are inactive:
    netman 
    appserrvman 
    java 
    mailman 
    monman
As an alternative, you can also stop all processes by shutting down the related HCL Workload Automation and IBM WebSphere Application Server services from the services panel.

2. Delete the HCL Workload Automation profile on WebSphere Application Server
  1. Go to the bin subdirectory under the installation path, for example C:\Program Files\IBM\WebSphere\AppServer\bin, and run the command:
    manageprofiles.bat –delete –profileName your_profile_name
  2. Check the name of the profile used by your HCL Workload Automation instance by running these steps:
    1. Go to the C:\WINDOWS\TWA directory. This directory contains several files, one for each HCL Workload Automation instance that is installed.
    2. Look for the file whose properties include the path of the profile to delete. The profile_name property contains the name of the profile to delete.
  3. Verify in the log file that the profile was deleted successfully.
  4. Delete manually the TWSProfile from the WebSphere Application Server directory under the installation path.
3. Delete the HCL Workload Automation services
If you are uninstalling the master domain manager, you must delete the following services:
tws_tokensrv_TWS_user
tws_maestro_TWS_user
tws_ssm_agent_TWS_user
tws_netman_TWS_user
tws_cpa_agent_TWS_user
IBMWASService - TWS_user
The command to delete a service is:
sc delete service_name
When you finished, check that the following services are no longer listed in the active services for the TWS_user:

Workload Scheduler
Netman
Token service
Common Platform agent
Websphere Application Server

If any of these services is still in the list, reboot the system and check again.

4. Delete the registry in the Installation Manager (IM)
  1. Launch Installation Manager.
  2. Select the HCL Workload Automation package that you want to uninstall.
5. Delete the HCL Workload Automation and the HCL Workload Automation registries
  1. Edit the C:\Windows\TWSRegistry.dat file.
  2. Delete the lines tagged with TWS_user.
  3. Go to the C:\Windows\TWA directory, which contains two files for each HCL Workload Automation instance installed.
  4. Look for the properties file that applies to the HCL Workload Automation instance to remove.
  5. Delete that properties file and the file with the same filename and extension .ext.
  6. Delete the C:\Windows\teb directory.
6. Delete the HCL Workload Automation files
Delete all the files under the TWA_install_dir directory.

7. Drop the HCL Workload Automation tables to the RDBMS
On DB2:
Run the following steps:
  1. From the program menu, open the DB2 command line processor (CLP).
  2. Look for the database name by running the command:
    list db directory
  3. If you see an entry named your_db_name associated to the HCL Workload Automation instance, run the command:
    drop db your_db_name
  4. If you see an entry named your_db_name_DB associated to the HCL Workload Automation instance, run the command:
    uncatalog db your_db_name_DB
  5. To see which node is attached to the master domain manager system run the command:
    list node directory
  6. Run the command:
    uncatalog node your_node
If the master domain manager was installed on the DB2 client, run steps 1 and 5 also on the system where the master domain manager is installed.
On ORACLE:
Run the following steps:
  1. Access the ORACLE command line.
  2. Run the command:
    sqlplus system/password@net_service_name
  3. Delete all the tables related to the HCL Workload Automation instance by running the command:
    drop user ORACLE_TWS_user cascade;