Sie sind auf Seite 1von 6

SETTING UP A LOCAL MID SERVER

1. Log onto your favorite Sandbox instance (the one I will be using here is SB6)

2. Navigate to: User Administration / Users

a. Create a new User (Name: MIDUser; Password: your favorite password)

3. Navigate to: User Administration / Groups

a. Create a new group (Name: MIDServer)

b. Add the role mid_server

c. Add the user MIDUser

4. Navigate to: MID Server / Downloads

5. Pick your favorite version of MID Server install from either Linux or Windows. In this
example, I use Windows 32-bit .
6. Download the file. Its 85Mb, just a short coffee break

7. Unpack the file to your favorite location (it can be truly anywhere). In this example, I
placed the file in c:\ServiceNow.

8. Now we are ready to configure the MID Server service. Navigate to the agent folder
and find the file: config.xml.

9. Open it in your favorite text editor (I used Notepad++ for this example).

10. You will need to make a few modifications to the config before starting the service.

a. Modify the name=url line and change value= to the url of your ServiceNow
instance.

Example: <parameter name=url value=https://yourinstancename.service-now.com//>

b. Modify the name=mid.instance.username and change the value= to the MIDUser


userid you set up in your instance.
Example: <parameter name=mid.instance.username value=MIDUser/>

c. Modify the name=mid.instance.password and change the value= to the password


of the userid you set up in your instance. The encrypt setting, if true (the default),
specifies that the password will be encrypted in the config.xml file after a successful
connection is made. See the screenshot below.

Example: <parameter encrypt=true name=mid.instance.password


value=password/>

d. Modify the name=name and Change the value= to the name of your MidServer

Example: <parameter name=name value=StevesEurekaServer/>

11. Save the config.xml file. Your MID Server is now configured!

12. From the same directory, double-click start.bat (I prefer to do this from the command
line in case there are errors thrown). Start.bat acts as a service installer on the first time
run. After that, it will be the method of starting and/or restarting your MID Server service.
Stop.bat obviously stops your service.

Here is the start.bat from the Explorer window (view this as Administrator to avoid
annoying messages from popping up!):
13. The server will take a couple of minutes to come up, but there shouldnt be any
errors.

14. In Windows, go to Start and type in Task Manager. Choose View Running
Processes with Task Manager (you can also get to this window by right-clicking on the
Start bar at the bottom of your screen and picking Task Manager). You should see
something like the following form appear.
Go to the Services tab and scroll down until you find the snc_mid service. This is the
default service name for the MID Server service. The status should be Running.

15. Once you see the MID Server service is up and running, you will find that your
config.xml file has been modified. If you open it and scroll down to the bottom of the
config file, you will see that a mid_sys_id value has been retrieved from the ServiceNow
instance and saved into the config file. This helps the instance identify the MID Server
and vice versa.

CONNECTING TO YOUR LOCAL MID SERVER

Now back to the ServiceNow instance in your browser!

16. Navigate to Mid Server / Servers

17. You should see youre new MID Server with the name you gave it spinning
happily. The status should be green and say Up, the Name field should contain the
same name as your Name parameter in the MID Server config file and the Host name
is your local desktop/laptop name.

18. Click into your MID Server link.

19. You should see all the current stats on your server, along with IP info, etc. Note that
the configuration parameters you entered on your local machine are now reflected in the
Configuration Parameters tab. The mid_sys_id is the same you saw automatically written
into your local config file.
You are done: You set up your own local MID Server

For more try these links below.

ServiceNow Wiki MID Server Configuration


http://wiki.servicenow.com/index.php?title=MID_Server_Configuration

ServiceNow Wiki MID Server Installation


http://wiki.servicenow.com/index.php?title=MID_Server_Installation

Das könnte Ihnen auch gefallen