Guide / Steps for Uninstalling MID Server Agent on Windows and Removing the Entry from the Instance

Selva Arun
Mega Sage
Mega Sage

Uninstalling a MID Server on Windows

The MID Server runs as a standalone service. It can be removed easily to accommodate such tasks as redeploying the MID Server to another host system or changing the unique name of a MID Server when deploying multiple MID Servers.

Procedure: Uninstall OLD MID-server - Support and Troubleshooting (servicenow.com)

To uninstall a MID Server on Windows, complete the following steps.

  1. Stop the running MID Server service by running one of the following commands.
    • (Windows) stop.bat
    • (Linux) stop.sh
  2. Find where the old MID-Server is installed.
    1. Go to Run and type services.msc.
    2. Find the Service called "ServiceNow MID Server".
    3. Right-click on the service and click on the Properties tab.
    4. See the "Path to be executable".

That is the path where the Configuration files of MID-server are stored. See the following screenshot as an example:

selvarun_0-1712758040145.png

 

Go to the MID-Server installed folder, take a backup of the agent and wrapper logs if needed.

  1. Go to the bin folder and double-click uninstall.bat.
  2. The service gets uninstalled and now you can delete the entire MID-Server folder.

MID Servers should not remain in Down status if its MID Server (ecc_agent) record is no longer valid.

Delete the Mid Servers Clusters:

  • Go to MID server cluster list view.
  • Select the Mid Server Cluster Name.
  • Click on Delete.

Delete the Mid Server from the ecc_agent table:

  • Go to ecc_agent list view.
  • Select the Mid- Server which has status as “Down.”
  • Click on Delete.

 

ServiceNow MID Server Landing page:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0960404

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0997592

 

 

 

1 REPLY 1

AJ-TechTrek
Giga Sage
Giga Sage

Hi @Selva Arun ,

 

Thanks, This document is looks good.

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.

 

Thanks

AJ

Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/

ServiceNow Community Rising Star 2024