iwai
Giga Sage

I installed the MID server to "Raspberry pi Zero W" and the connection to the ServiceNow succeeded.
I will post it as a case.
(By cooperation of Google translation)

"Raspberry pi Zero W"
"Kingston of My Instance" as of February 20, 2018

After setting the file of Raspberry pi as in the past case, additional correction was necessary.
https://community.servicenow.com/community?id=community_article&sys_id=156daa29dbd0dbc01dcaf3231f961...

1, We will perform initial setup until Raspberry Pi can connect to the Internet.

2, Install the ARM version of JRE.
Connecting to the Internet.
Obtain a list of the latest packages. "sudo apt-get update"

sudo apt-get install openjdk-8-jre-headless


3, Download "MIDServer Linux 32 bit" from Instance of ServiceNow. Deploy the ZIP file.
"mid.kingston-10-17-2017__patch1-12-12-2017_01-03-2018_0843.linux.x86-32.zip"
Pay attention to permissions.
This is for CPU X86, so you will now change to ARM.

4, Create symlinks.
"Raspberry pi Zero W"
The result of "uname -a" was "armv6l".

sudo ln -s -r /servicenow/agent/bin/wrapper-linux-arm-32 /servicenow/agent/bin/wrapper-linux-armv6l-32


5, Edit "wrapper-override.conf".

sudo nano /servicenow/agent/conf/wrapper-override.conf

wrapper.java.command=/usr/lib/jvm/java-1.8.0-openjdk-armhf/jre/bin/java
wrapper.java.maxmemory=256


6, Edit "wrapper-jvm.conf".

sudo nano /servicenow/agent/conf/wrapper-jvm.conf


Before the change:

set.SNC_JVM_ARCH=x86-32


After the change:

set.SNC_JVM_ARCH=arm


7, Edit "mid.sh".
"Armv6l" of "Raspberry pi Zero W" is 32 bits.

sudo nano /servicenow/agent/bin/mid.sh


Before the change:
Line 347:

        armv6*)
            DIST_ARCH="arm"
            DIST_BITS="64"
            ;;


After the change:

        armv6*)
            DIST_ARCH="arm"
            DIST_BITS="32"
            ;;


8, To manually configure MIDServer, modify "config.xml".
In advance, create a MIDServer account and assign roles.

sudo nano /servicenow/agent/config.xml

<parameter name="url" value="https://YOUR_INSTANCE.service-now.com/"/>
<parameter name="mid.instance.username" value="YOUR_INSTANCE_USER_NAME_HERE"/>
<parameter secure="true" name="mid.instance.password" value="YOUR_INSTANCE_PASSWORD_HERE"/>
<parameter name="name" value="YOUR_MIDSERVER_NAME_GOES_HERE"/>


8-2, When setting automatically, modify "installer.sh".

sudo nano /servicenow/agent/installer.sh


Before the change:

jre/bin/java -cp "lib/mid-installer.jar:lib/*" com.service_now.mid.installer.InstallerUI


After the change: (Do not break)

/usr/lib/jvm/java-1.8.0-openjdk-armhf/jre/bin/java -cp "lib/mid-installer.jar:lib/*" com.service_now.mid.installer.InstallerUI


9, It is completion.

10, Start MIDServer.

sudo ./start.sh


Depending on the environment and version upgrade, you may need to change the correction method.

I am glad that this article is useful for you.

Comments
iwai
Giga Sage

I installed MYSQL (MariaDB) on Raspberry pi.
Accumulate information of Raspberry pi in the database,
Succeeded to import data using ServiceNow import function via MID Server.

Version history
Last update:
‎02-20-2018 01:34 AM
Updated by: