The CreatorCon Call for Content is officially open! Get started here.

Mid Server: Set up Mid Server on Local Machine

maheshkhatal
Mega Sage
Mega Sage

Setting Up MID Server on ServiceNow Instance 🌐🖥

Hello All,

In this article, I will guide you through the process of setting up a MID Server on your local Windows machine. In a future article, we will explore how to run Discovery for the local machine. This is the first article in the series.


Step 1: Creating a User with MID Server Role 👤🔑

  1. Create a MID Server User:

    • Create a new user (let's name it mid.server) and set a password for this user.
    • Make sure to note down the password since it will be used in the configuration file for the MID Server.maheshkhatal_1-1735228204281.png

       

       
  2. Assign the MID Server Role:

    • After creating the user, go to the Roles tab, search for the mid_server role, and assign it to this user.
    • Save the user details.

    Tip: For safety, you can log in with this new mid.server user and password to confirm everything is set up, then log out.

    Note: When you assign the mid_server role, several other roles will be added automatically to the user.

                 

maheshkhatal_3-1735228233990.png

 

Step 2: Download the MID Server Package ⬇️🗂

  1. Go to the ServiceNow Browser Window:

    • In the application menu, search for MID Server.
  2. Download the MID Server Package:

    • Navigate to MID Server > Downloads.
    • Select the checkbox to Download MID Server as ZIP archive.
    • Choose the Windows version (e.g., mid.utah-12-21-2022__patch4-hotfix2-06-23-2023_06-23-2023_2224.windows.x86-64).

                           

maheshkhatal_4-1735228299397.png

 

maheshkhatal_5-1735228324198.png

Step 3: Extract and Configure the MID Server 📂⚙️

  1. Create the Folder for MID Server:

    • On your C:/ drive, create a folder named Mid Server.
    • Inside the Mid Server folder, copy the contents of the agent folder.
  2. Edit the Configuration File:

    • Inside the agent folder, locate and open the config file (usually an XML-based file).
    • For easier editing, use Notepad++ to avoid syntax mistakes.
  3. Configure the Details:

    • Instance Name: Set the name of your ServiceNow instance.
    • Username & Password: Enter the mid.server user and password (the one created earlier).
    • MID Server Name: Set the value to "Mid Server 1" (This name will appear in the ServiceNow MID Server list).

    Save the changes to the configuration file.

                

maheshkhatal_6-1735228373751.png

 

maheshkhatal_7-1735228382237.png

maheshkhatal_8-1735228435679.png

 

           

Step 4: Start the MID Server ▶️💻

  1. Start the MID Server:

    • Navigate to the agent/bin folder.
    • Right-click and Run as Administrator on the StartMID-NT.bat file.
  2. Execute the Batch File:

    • In the agent folder, execute the start.bat file (make sure to Run as Administrator).

maheshkhatal_9-1735228515214.png

Step 5: Validate the MID Server in ServiceNow ✔️

  1. Go to ServiceNow Instance:

    • In the application menu, navigate to MID Server > Servers.
  2. Refresh the Server List:

    • Initially, there will be no MID Server listed. Refresh the page, and it will take some time for "Mid Server 1" to appear.
  3. Validate the MID Server:

    • Once the server appears, click on "Mid Server 1".
    • Then click on the "Validate" link. This will trigger the server to wake up.
    • The status will change from Down to Up as the server gets validated and starts functioning.

maheshkhatal_10-1735228552970.png

 

 

         You have successfully set up the MID Server on your local Windows machine! 🖥️ In the next article, we will discuss how to use the MID Server for Discovery on the local machine. Stay tuned!

2 ACCEPTED SOLUTIONS

Sai kumar123
Tera Expert

NeverDuplicate
Giga Contributor

Really helpful 

View solution in original post

5 REPLIES 5

baba
Tera Contributor

Thanks