Uninstall Dynatrace OneAgent on z/OS
To uninstall OneAgent from z/OS, you need to uninstall its individual components as described below.
1. Uninstall the zDC
- Shut down the zDC started task.
- Remove the zDC started task from any automation process that starts it at IPL time.
- Remove SZDTAUTH from the APF Authorized list.
- Remove the zDC proc from your proclib.
- Remove the zDC JCL from your JCL library if one exists.
2. Uninstall OneAgent from CICS
- If a SOAP pipeline is used, scan all the pipeline configuration files and remove ZDTSOAPH references.
If ZDTSOAPH remains in the pipeline, CICS SOAP requests will fail. - Remove ZDTPLT and ZDTPLTSD from the PLT list.
An attempt to restart CICS without removing these might cause the CICS startup to hang while awaiting operator input to continue without ZDTPLT. - Remove the
ZDTPLT=
parameter from INITPARM in the SIT parameter. - Remove the Dynatrace GROUP definition (
DTA1
by default) from the CSD. - Optional Remove SZDTLOAD if it was added to the DFHRPL concatenation.
- Use DTAX to DISABLE our hooks and exits until you can recycle the CICS region.
- Recycle the CICS region when possible.
3. Uninstall OneAgent from IMS
- Run the ZDTIINST job with action code
D
to disable the IMS hook until you can recycle the IMS. - Recycle the IMS region when possible.
- Uninstall OneAgent from IMS Connect.
- Remove SZDTAUTH from the STEPLIB.
- Recycle IMS Connect.
4. Uninstall Java code module on z/OS
If OneAgent for Java was installed on z/OS, follow the below steps to uninstall from the respective instances.
Uninstall from WebSphere Application Server
- Remove
-javaagent:/PATH_TO/dynatrace-oneagent-zos-java.jar
from the generic JVM arguments. - Recycle WebSphere Application Server.
Uninstall from WebSphere Liberty
- Remove
-javaagent:/PATH_TO/dynatrace-oneagent-zos-java.jar
from thejvm.options
file. - Remove the
monitor-1.0
feature fromfeatureManager
in theserver.xml
file. - Recycle WebSphere Liberty.
Uninstall from CICS Transaction Gateway
- Remove the
dynatrace-oneagent-zos-java.jar
referenced in-javaagent=
in memberCTGENV
. - Recycle CICS Transaction Gateway.
Uninstall from IMS SOAP Gateway
- Remove the
zDT
reference from the IMS SOAP Gateway configuration file. - Recycle IMS SOAP Gateway.
Uninstall from z/OS Connect Enterprise Edition
- Remove the
dynatrace-oneagent-zos-java.jar
referenced in-javaagent=
inJVM_OPTIONS
inSTDENV
. - Recycle z/OS Connect.
5. Uninstall the zRemote module
Although the zRemote module is installed automatically during Environment ActiveGate installation, it isn't removed when the Environment ActiveGate is removed. You must uninstall the zRemote module separately.
You need root priviliges to execute this command.
/bin/sh /opt/dynatrace/zremote/uninstall.sh
Because the zRemote module is managed by a standard MSI installation package, it can be uninstalled via the standard Windows list of installed programs, or via the usual command line and Powershell commands for uninstalling programs.
6. Delete datasets
Delete the following installation datasets:
DT.R1nnnx.SZDTAUTH
DT.R1nnnx.SZDTLOAD
DT.R1nnnx.SZDTSAMP
7. Following uninstallation
There are installation files, log files, and configuration files in the USS directory that need to be manually deleted following the uninstallation.
If you used the u/dt
default home directory:
- The zDC, zLocal, and Java OneAgent for z/OS logs are stored in the
/u/dt/log
directory. - The installation files are stored in the
/u/dt/agent
directory.
Delete the u/dt
directory to clean up those installation files and log files.
Delete the Java OneAgent for z/OS dynatrace-oneagent-zos-java.jar
file and the dtconfig.json
configuration file from where you stored them in the USS.