Uninstalling the Tivoli Workload Scheduler for z/OS Agent using the twsinst script
|Follow these steps to uninstall the Tivoli Workload Scheduler for z/OS Agent using the twsinst script. Only agents installed using twsinst can be uninstalled using twsinst. |Depending on the operating system, proceed as follows:
|-
|
- On UNIX, Linux, and IBM i operating systems:
|
-
|
- Ensure that all processes and services are stopped, and that there |are no active or pending jobs. For information about stopping the |processes and services, see Tivoli Workload Scheduler: Administration Guide. |
- Log on as root and change your directory to /installation_dir/TWS |(for example: /home/user1/TWS where user1 is the name of Tivoli® Workload Scheduler user.) |
- From the TWS directory, run the twsinst script as follows:
|
twsinst -uninst -uname username [-wait minutes] |[-lang lang_id]
The uninstall is performed in the language of the locale and |not the language set during the installation phase. If you want to |uninstall agents in a language other than the locale of the computer, |run the twsinst script from the /installation_dir/TWS |(for example, /home/user1/TWS) as follows:
|./twsinst -uninst -uname user_name -lang language
where language is the language set during the uninstallation.
| - On Windows operating
|systems:
|
-
|
- Ensure that all Tivoli Workload Scheduler processes and services are stopped, and |that there are no active or pending jobs. |
- Log on as administrator on the workstation where you want to uninstall |the product. |
- From the installation_dir\TWS (for example,
|c:\Program Files\IBM\TWA), run the twsinst script
|as follows:
|
twsinst -uninst -uname username [-wait minutes] |[-domain domain_name] [-lang lang_id]
||Note:|twsinst for Windows is a Visual Basic Script (VBS) that you can |run in CScript and WScript mode.
The uninstallation is performed in the language of the locale |and not the language set during the installation phase. If you want |to uninstall agents in a language other than the locale of the computer, |run the twsinst script from the /installation_dir/TWS |(for example, /home/user1/TWS) as follows:
|twsinst -uninst -uname user_name -lang language
where language is the language set during the uninstallation.
-
|
- -uninst |
- Uninstalls the agent | |
- -uname username |
- The name of the user for which the agent is uninstalled. This |user name is not to be confused with the user performing the installation |logged on as root on UNIX and Linux, |as administrator on Windows, and as QSECOFR on IBM i. | |
- -wait minutes |
- The number of minutes that the product waits for jobs that are |running to complete before starting the uninstallation. If the jobs |do not complete during this interval the uninstallation stops and |an error message is displayed. Valid values are integers or -1 for the product to wait indefinitely. The default |is 60. | |
- -domain domain_name |
- Windows only. The domain |name of the Tivoli Workload |Scheduler user. The default is the name of the workstation on which |you are uninstalling the product. | |
- -lang lang_id |
- The language in which the twsinst messages are displayed.
|If not specified, the system LANG is used. If the related catalog
|is missing, the default C language catalog is used.
|||Note:|The -lang option is not to be confused with the Tivoli Workload Scheduler supported |language packs.
|
The following is an example of a twsinst script |that uninstalls the Tivoli Workload Scheduler agent, originally installed for user named twsuser:
|-
|
- On UNIX, Linux, and IBM i operating systems: |
-
|
./twsinst -uninst -uname TWS_user
|
| - On Windows operating |systems: |
-
|
twsinst -uninst -uname TWS_user
|
|