Uninstalling a DataMiner Agent
There are two possibilities to uninstall a DataMiner Agent:
Uninstalling a DMA using the Installer
Download the DataMiner installer from DataMiner Dojo.
Make sure you are logged into Windows with the Administrator account. (Do not use a regular user account with administrative rights.)
Double-click Setup.exe.
Click Uninstall.
Caution
Once you have clicked Uninstall, there is no way to gracefully stop the uninstallation process.
The progress of the uninstallation will be displayed. With the Open logs button in the lower right corner, you can see more detailed log information if necessary.
Click Close.
In case the DataMiner Agent used a Cassandra database, follow the procedure related to Cassandra from Uninstalling a DMA using a manual procedure.
In case the DataMiner Agent used an Elasticsearch database, follow the procedure related to Elasticsearch from Uninstalling a DMA using a manual procedure.
In case the DataMiner Cloud Pack was installed on the DataMiner Agent, uninstall it in Windows via Control Panel > Programs > Programs and Features.
Note
Multiple programs are installed as part of the DataMiner Cloud Pack: DataMiner APIGateway, DataMiner ArtifactDeployer, DataMiner CloudGateway, etc. Uninstalling DataMiner Cloud Pack in the Programs and Features window will remove the cloud pack including all of its related components.
In case other systems have DxMs that request data from the Agent you are uninstalling (such as Data Aggregator), make sure to disable these requests.
This will ensure that those DxMs do not keep trying to send requests to the uninstalled Agent.
Uninstalling a DMA using a manual procedure
Go to the folder C:\Skyline DataMiner\Tools.
Run the following scripts as Administrator:
DataMiner Stop DataMiner And SLNet.bat
ConfigureIIS_Undo.bat
ConfigureFirewall_Undo.bat
In case the DataMiner Agent used a MySQL database: RemoveDB.bat
UnRegister DataMiner.bat
UnRegister dll's of DataMiner.bat
RemoveEventLog.exe
Note
After you run these scripts, check the Details and Services tabs of Windows Task Manager for remaining DataMiner processes or services. Neither tab should contain any entries starting with "SL". If any such processes are still shown in the Task Manager, try re-running the scripts above or stop the processes manually.
From DataMiner 10.1.0/10.1.1 onwards, use SLEndpointTool_console to remove NATS:
Run C:\Skyline DataMiner\Files\SLEndpointTool_Console.exe either directly or from cmd.exe as Administrator.
Select Uninstall.
Select NAS as the endpoint to uninstall.
Note
In some DataMiner releases, the file SLendpointTool_Console.exe is not available. In this case, uninstall NATS by running the following command as Administrator:
sc stop NATS && sc stop NAS && sc delete NATS && sc delete NAS
Delete the folder C:\Skyline DataMiner.
In case a Cassandra database was installed on the server:
Stop the Cassandra service.
Run cmd.exe as Administrator and enter the following command to delete the Cassandra service:
sc delete cassandra
Delete the folder C:\Program Files\Cassandra.
If you want, you can do so within the same command window by entering the following command:
rmdir "C:\Program Files\Cassandra" /s
Delete the folder C:\ProgramData\Cassandra.
If you want, you can do so within the same command window by entering the following command:
rmdir "C:\ProgramData\Cassandra" /s
Note
The ProgramData folder is not displayed by default, so you may need to select to display hidden items in order to access this folder.
Run regedit as Administrator and delete the registry key “cassandra” in HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0.
In case an Elasticsearch database was installed on the server:
Stop the Elasticsearch service. If the process does not stop properly, end the process.
Run cmd.exe as Administrator and enter the following command to delete the Elasticsearch service:
sc delete elasticsearch-service-x64
Run regedit as Administrator and delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\elasticsearch-service-x64.
Delete the Elasticsearch data folder, e.g. C:\ProgramData\Elasticsearch. If you are unsure where to find the directory, look for path.data in the elasticsearch.yml file.
Note
The ProgramData folder is not displayed by default, so you may need to select to display hidden items in order to access this folder.
Delete the folder C:\Program Files\Elasticsearch.
If any Elasticsearch firewall rule exists, delete it.
In case the DataMiner Cloud Pack was installed on the DataMiner Agent, uninstall it in Windows via Control Panel > Programs > Programs and Features.
Note
Multiple programs are installed as part of the DataMiner Cloud Pack: DataMiner APIGateway, DataMiner ArtifactDeployer, DataMiner CloudGateway, etc. Uninstalling DataMiner Cloud Pack in the Programs and Features window will remove the cloud pack including all of its related components.
In case other systems have DxMs that request data from the Agent you are uninstalling (such as Data Aggregator), make sure to disable these requests.
This will ensure that those DxMs do not keep trying to send requests to the uninstalled Agent.