SETUP MID SERVER ON LINUX MACHINE WITHOUT CREATING A USER

Muhammad_Faisal
Tera Contributor

Is it possible , download a mid server zip file through ServiceNow  on Linux System and without creating a user on a Linux System can we setup mid server, if is it possible so we are able to see the mid server on ServiceNow ? If someone knows please help me.

2 ACCEPTED SOLUTIONS

Runjay Patel
Giga Sage

Hi @Muhammad_Faisal ,

 

To run mid server you require mandatory to have an account in ServiceNow and that user should have role assigned as mid_server.

 

check this for more details: https://servicenowwithrunjay.com/mid-server-system-requirements/

 

Accept and mark helpful if my response helped you.

View solution in original post

Prabu Velayutha
Mega Sage
Mega Sage

Hi @Muhammad_Faisal 

 

You would need a non root user with privilege to install the Mid Server package. Please see the below command for silent installation on the linux server with required parameters for completing the installation. 

 

./installer.sh -silent -INSTANCE_URL https://instance_name.service-now.com -MUTUAL_AUTH N -MID_USERNAME username -MID_PASSWORD password -USE_PROXY N -MID_NAME mid -APP_NAME mid -APP_LONG_NAME ServiceNow_MID_Server_Mid -NON_ROOT_USER nonrootuser

 

The code block executes a shell script named installer.sh with several command-line options:

  • -silent: Runs the installation without user interaction.
  • -INSTANCE_URL https://instance_name.service-now.com: Specifies the URL of the ServiceNow instance.
  • -MUTUAL_AUTH N: Indicates that mutual authentication is not enabled.
  • -MID_USERNAME username: Sets the username for the MID server.
  • -MID_PASSWORD password: Sets the password for the MID server.
  • -USE_PROXY N: Indicates that a proxy is not used.
  • -MID_NAME mid: Names the MID server instance as "mid".
  • -APP_NAME mid: Sets the application name to "mid".
  • -APP_LONG_NAME ServiceNow_MID_Server_Mid: Provides a longer name for the application.
  • -NON_ROOT_USER nonrootuser: Specifies a non-root user for the installation.

Both non root user account is needed for the installation. Once the installation is complete you can view the installed Mid Server on the instance.

 

For more details please refer the product documentation URL: https://www.servicenow.com/docs/bundle/xanadu-servicenow-platform/page/product/mid-server/task/t_Ins... 

 

If my response helped you kindly give a thumps up and mark it as correct answer.

 

 

View solution in original post

5 REPLIES 5

rambo1
Tera Guru

@Muhammad_Faisal 

you will need to use some automated process like bash script or some automation tools to get this done.

Here's a generalized version using a Bash script:

Download the MID Server installer:
-wget --no-check-certificate https://<instance>.service-now.com/ecc_agent_setup.do -O agent.jar
Replace your instance name

Create a configuration file agent/config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<parameters>
<name><mid-server-name></name>
<url><instance-url></url>
<user><username></user>
<password><password></password>
</parameters>
Replace all values

Install the ServiceNow MID Server:
java -jar agent.jar install

 

All above commonds need to be run with root or appropriate permissions.

This process requires java to run the agent.jar file. Please ensure Java is installed and you are able to access it from your terminal/cmd. You can verify by running java -version.

Ankur Bawiskar
Tera Patron
Tera Patron

@Muhammad_Faisal 

user will be required with mid_server role

OR

you can have any existing user and have mid_server role to it

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

Runjay Patel
Giga Sage

Hi @Muhammad_Faisal ,

 

To run mid server you require mandatory to have an account in ServiceNow and that user should have role assigned as mid_server.

 

check this for more details: https://servicenowwithrunjay.com/mid-server-system-requirements/

 

Accept and mark helpful if my response helped you.

Thank You @Runjay Patel