Installing and configuring the MID Server on Linux
The Management, Instrumentation, and Discovery (MID) Server is a Java server that facilitates communication and movement of data between the ServiceNow platform and external applications, data sources, and services.
The MID Server connects to a ServiceNow instance by using the SOAP web service. To allow authentication with the ServiceNow instance, create a separate user account for each MID Server or share the same account across multiple MID Servers. Each MID Server account must use the mid_server role to access protected tables.
Procedure
To install the MID server, set up a MID Server user and role in ServiceNow, and then download and install the MID server files. For more information, see Installing the MID Server from the ServiceNow online documentation. These instructions are for a Linux host.
Create the MID Server user account and grant the mid_server role to this user.
From the ServiceNow portal, click the All tab, search for User in the dropdown menu search field, and then click Organization > Users to display a list of users.
Click New on the far-right side of the banner.
Complete the following fields as appropriate. Consider using a simple user ID, like midserver.
Click Submit.
Select the newly created user from the list.
Click the Roles tab, and then click Edit.
Select the mid_server role for this user.
Click Save.
Confirm that the MID Server user account was created successfully by logging in to the MID Server using the specified credentials.
Get the download link for the MID Server installer file.
From the ServiceNow portal, click the All tab, search for “mid Server” in the dropdown menu search field, and then click Downloads to display a list of installation packages based on your base operating system.
Click the Copy link icon () next to the copy the download link.
Install the MID Server.
Create a temporary folder (such as midserver) on the local drive, and open the folder.
Run the wget <download_link> command to download the MID Server installation package. For example:
Change to the folder where the MID Server was installed on your local system, for example:
cd /opt/servicenow/mid/
Change to the super user (root), and then change to the agent folder, for example:
sudo su cd /agent
Run the ./installer.sh command from the agent/bin directory as root and provide the required input to configure the MID Server service.
ServiceNow instance URL. Enter the full URL of your ServiceNow instance, for example: https://mycompanyinstance.service-now.com
MID Server user ID. Enter the username of the MID Server user with the mid_server role that you created in step 1.
MID Server password. Enter the password for the current MID Server user.
MID Server name. Set the name of the MID Server.
Non root user name. Enter the user account you used to log in to ServiceNow.
Validate the MID server to ensure that it is trusted to access credentials.
From the ServiceNow portal, click the All tab, search for “mid Server” in the dropdown menu search field, and then click MID Server > Servers to display a list of installation packages based on your base operating system.
Verify that the MID Server you just created appears in the list.
If the Validated column shows No, click the name of the MID Server, and then click Validate at the bottom of the page. It can take up to 20 minutes to validate.
If the process appears to be stuck, you can restart the MID Server from the terminal by running the stop and start commands.