Installing a MID Server

Nilanjan1
Mega Sage

Hello Experts, 

 

Is there a way to install a MID Server in a PDI? Can someone help ?

 

Regards

Nilanjan

5 REPLIES 5

Sandeep Rajput
Tera Patron
Tera Patron

@Nilanjan1 According to the definition The Management, Instrumentation, and Discovery (MID) Server is a Java application that runs as a Windows service or UNIX daemon on a server in your local network. Unfortunately, you will not be able to install it on your PDI. However, you can establish connection with an already installed MID server (windows/unix) in your PDI.

 

For more information on MID server please refer to https://docs.servicenow.com/en-US/bundle/vancouver-servicenow-platform/page/product/mid-server/conce...

Sandeep132
Kilo Sage

Hi @Nilanjan1 If you have some basic understanding on using Docker, then it is pretty simple to host midserver using Docker Image and use it for Personal Instance use. You can follow the below steps to build a docker image and run the docker image as midserver.

 

Step 1: Download the Docker Recipe from MidServer --> Downloads module and unzip it in a separate folder.

Sandeep132_0-1698065486824.png

 

Step 2: Build the Docker Image from the contents downloaded in Step 1. I downloaded the Linux Docker Recipe and unziped into a folder. In the Terminal change your directory to the folder where the MidServer contents are downloaded. Run this docker command to build the Docker Image for MidServer.

 

sudo docker build . --build-arg MID_SIGNATURE_VERIFICATION=false --tag 'servicenow-midserver'

 

The above step will build a docker image and tag it with 'servicenow-midserver'

 

Step 3: Once the Docker Image is built, we can run the image as container. You can follow the below command 

sudo docker run -d \
--name my-docker-midserver \
--env MID_INSTANCE_URL=nowinstance.service-now.com\
--env MID_SERVER_NAME=mid_server_name\
--env MID_INSTANCE_USERNAME=mid_server_user_name\
--env MID_INSTANCE_PASSWORD=mid_server_user_password \
servicenow-midserver:latest

In the above command we are passing instance url, midserver user and password as environment variables. 

 

Step 4: Follow the docker container logs using this command.

sudo docker logs my-docker-midserver --follow

 

If you want to remove the docker container, then you can follow this command.

sudo docker rm my-docker-midserver -f

 

Hope this helps. I personally tried this on my MacBook and was able to run the MidServer up and running on my personal instance.

 

Thank you Sandeep. Apologies for the delay to reply. I am working through this, I will update by tomorrow whether it is sucessful. 

Ankur Bawiskar
Tera Patron
Tera Patron

@Nilanjan1 

Any challenge you are facing on this?

Steps mentioned on docs should work for client instance and for PDI as well

check these links

Install a MID Server on Windows 

Installing a MID Server on a Windows system 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader