Detailed steps of a Linux Remedy AR System install (non ITSM)

Version 4
    Share:|

    These are the exact steps I took in order to do a Root install of AR System and Mid-Tier on Linux.

    The steps should be easy to follow even for an inexeprienced linux person. Some of the version stuff might be different. In Remedy version 9 some stuff will be different because the system should be completely java based at that time.

     

    Feel free to add comments and refine this document as you see fit!

     

    I choose Scientific Linux as it is a full Red Hat Enterprise Linux clone which is well maintained.

     

    It should be the exact same thing to do it on CentOS (another clone) or RedHat (which is not free).

     

    To have a free database, I choose Oracle XE.

     

    For a non-itsm system, 2GB ram was enough for me for AR System 8.1 to d[root@ars810test /tmp]#
    o the install and to run the small custom system.

     

    This is not general purpose instructions, but a working example with a lot of step by step details.

     

    Preparation

    Install Scientific Linux (I used version 6.6), and make sure you have the ssh service running and the possibility to run x-applications:

    [root@ars810test /]# yum install openssh-server

    [root@ars810test /]# yum install xorg-x11-xauth

     

    Install ssh and an X-server on your Windows PC in order to run the installer. I run Linux as client, so this is not something I did this time:

    I use Cygwin and ran the net installer including the packages xorg-server, openssh and xterm.

     

    You can then run your Linux from your Windows machine:

    1. Start Cygwin-X-Server in Windows which will open an xterm window
    2. Run ssh -X root@ars810test.rrr to login to your linux machine and set the session up for X forwardning.


    Edit hosts file and verify that you have both short and long (FQDN) name configured for 127.0.0.1.

    vi /etc/hosts

    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 ars810test ars810test.rrr

    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

     

    You will probably have this installed from start. This will make sure you have the latest 1.7 version:

    [root@ars810test /]# yum install java-1.7.0-openjdk

     

    Oracle

    Download oracle-xe-11.2.0-1.0.x86_64.rpm (found under Download -> Oracle Express Edition) and oracle-linux-x64_11gR2_client.zip (found in the full Oracle -> Download -> Oracle Database section).

     

    (copy file from your pc with scp to /tmp)

     

    Install Oracle XE

    [from PC] ssh -X root@ars810test.rrr

    [root@ars810test /tmp]# rpm -ivh oracle-xe-11.2.0-1.0.x86_64.rpm

    [root@ars810test /tmp]# /etc/init.d/oracle-xe configure

    Specify the HTTP port that will be used for Oracle Application Express [8080]:7000

    Specify a port that will be used for the database listener [1521]:

     

    Install Oracle Client (fo fool the installer)

    [root@ars810test /tmp]# groupadd -g 9003 oracleclient

    [root@ars810test /tmp]# useradd -b /u01/app -g 9003 -u 9003 oracleclient

    [root@ars810test /tmp]# passwd oracleclient

    [from PC] ssh -X oracleclient@ars810test.rrr

    [oracleclient@ars810test /u01/app/oracleclient]# unzip /tmp/oracle-linux-x64_11gR2_client.zip

    [oracleclient@ars810test /u01/app/oracleclient]# cd client

    [oracleclient@ars810test /u01/app/oracleclient]# ./runInstaller

    Type: [*] Runtime

    Languages: Swedish+English

    Oracle Base: /u01/app/oracleclient/oracle

    Software Location: /u01/app/oracleclient/oracle/product/11.2.0/client_1

    Inventory Directory: /u01/app/oracleclient/oraInventory

     

    [root@ars810test /tmp]# yum install libaio-devel libaio.i686 libaio-devel.i686 libstdc++.i686 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 glibc.i686 libgcc.i686 elfutils-libelf-devel unixODBC.i686 unixODBC-devel.i686 unixODBC-devel.x86_64 gcc

     

    Fix dependencies ([oracleclient@ars810test /tmp]# /tmp/CVU_11.2.0.1.0_oracleclient/runfixup.sh)

    Ignore dependencies

    [root@ars810test /tmp]# /u01/app/oracleclient/oraInventory/orainstRoot.sh

     

    [root@ars810test /tmp]# cp /u01/app/oracle/product/11.2.0/xe/network/admin/tnsnames.ora /u01/app/oracleclient/oracle/product/11.2.0/client_1/network/admin/tnsnames.ora

     

    [root@ars810test /tmp]# service oracle-xe restart

     

    Test Oracle XE and Oracle Client:

    Set environment.

    [root@ars810test /tmp]# export ORACLE_HOME=/u01/app/oracleclient/oracle/product/11.2.0/client_1

    [root@ars810test /tmp]# export ORACLE_SID=XE

    [root@ars810test /tmp]# export NLS_LANG=SWEDISH_SWEDEN.AL32UTF8

    [root@ars810test /tmp]# export PATH=$ORACLE_HOME/bin:$PATH

    Check that Oracle is responding.

    [root@ars810test /tmp]# tnsping $ORACLE_SID

    Check that you can login using the SYSEM account to your XE instance.

    [root@ars810test /tmp]# sqlplus SYSTEM@XE

     

    Installing Remedy AR Server

    [from PC] ssh -X root@ars810test.rrr

    I installed Apache (httpd) web server and Tomcat6 in advance, as I wanted to server other web pages.

    [root@ars810test /tmp]# yum install httpd

    [root@ars810test /tmp]# yum install tomcat6

    Create some files that is needed later on.

    [root@ars810test /tmp]# touch /usr/share/tomcat6/bin/startup.sh /usr/share/tomcat6/bin/shutdown.sh

    [root@ars810test /tmp]# chmod ugo+x /usr/share/tomcat6/bin/startup.sh /usr/share/tomcat6/bin/shutdown.sh

     

    Set up environment.

    [root@ars810test /tmp]# export ORACLE_HOME=/u01/app/oracleclient/oracle/product/11.2.0/client_1

    [root@ars810test /tmp]# export ORACLE_SID=XE

    [root@ars810test /tmp]# export NLS_LANG=SWEDISH_SWEDEN.AL32UTF8

    [root@ars810test /tmp]# export PATH=$ORACLE_HOME/bin:$PATH

    Unpack and start installer.

    [root@ars810test /tmp]# tar -zxvf ARSuiteKitLinux8.1.tar.gz

    [root@ars810test /tmp]# cd ARSuiteKit/Disk1/

    [root@ars810test /tmp/ARSuiteKit/Disk1/ ]# ./setup.sh

     

     

    Java 64-bit path: /usr/lib/jvm/jre-1.7.0-openjdk.x86_64

     

    Register With Portmapper: F

    TCP Port: 6000

    Plugin Port: 6001

     

    Oracle Client Path: /u01/app/oracleclient/oracle/product/11.2.0/client_1/

     

    Host: localhost

    Port: 1521

    Oracle Connection Identifier: XE

    Oracle SID: XE

    Login: ARAdmin

    Passwd:

     

    AR User: Demo

     

    Database Admnistrator User Name: SYSTEM

    Database Admnistrator User Passwd: ***

     

    AR Tablespace Name: ARSystem

    Datafile Name: /u01/app/oracle/oradata/XE/ARSys

    Datafile Size: 1500 (2000)

    New Temp Tablespace [*]

    AR Temp Tablespace: ARTMPSPC

    Temp Datafile Name: /u01/app/oracle/oradata/XE/artmp

    Temp Datafile Size: 500

     

    DSO/Appl/Mid-Tier Passwd: ***

     

    Sample Data: No

     

    English

     

    Configure Atrium SSO: [ ]

     

    DI Server port: 20000

     

    Full Text Plugin Server Port: 9998

     

    Flashboard Server RMI Port: 1099

    Flashboard Server RPC: 0

    Email Engine RMI Port: 1100

    Email Engine RPC: 0

     

    [ ] Incoming Mailbox

    [ ] Outgoing Mailbox

     

    ars810test-> ars810test.rrr

    Mid-Tier: Pre-Load [ ]

    Apache [*]

    Apache Path: /etc/httpd

     

    Apache Conf: /etc/httpd/conf

    Apache Bin: /usr/sbin

     

    [*] Tomcat

    Tomcat install: No

    Tomcat path: /usr/share/tomcat6

    BOXI:

    Context Path Mid-Tier: /arsys

     

    Post installation stuff

    [root@ars810test /tmp]# touch /etc/arsystem/www/arsystem.tag

     

    Startup file on boot/service command.

    vi /etc/init.d/arsystem

    #!/bin/bash

    #

    # chkconfig: 2345 85 25

    # description: Starting and stopping AR System

    #

    # processname: arsystem

    #

     

    # Set path if path not set (if called from /etc/rc)

    case $PATH in

      "") PATH=/bin:/usr/bin:/sbin:/etc

        export PATH ;;

    esac

     

    ARPATH="/opt/bmc/ARSystem"

    ARCMD="$ARPATH/bin/arsystem"

     

    export ORACLE_HOME=/u01/app/oracleclient/oracle/product/11.2.0/client_1

    export ORACLE_SID=XE

    export NLS_LANG=SWEDISH_SWEDEN.AL32UTF8

    #export TNS_ADMIN=/u01/app/oracle/product/11.2.0/xe/network/admin/

    export PATH="$ORACLE_HOME/bin:$ARPATH/bin:$PATH"

     

    RETVAL=0

     

    # See how we were called.

    case "$1" in

      start)

        $ARCMD start

        RETVAL=$?

      ;;

      stop)

        $ARCMD stop

        RETVAL=$?

      ;;

      restart)

        $ARCMD restart

        RETVAL=$?

      ;;

      *)

        echo $"Usage: $prog {start|stop|restart}"

        RETVAL=2

    esac

     

    exit $RETVAL

    [root@ars810test /tmp]# chmod 0755 /etc/init.d/arsystem

    [root@ars810test /tmp]# chkconfig --add arsystem

    Restart the AR Server:

    [root@ars810test /tmp]# service arsystem restart

     

    Tomcat stuff:

    [root@ars810test /tmp]# mkdir /opt/bmc/ARSystem/midtier/cache

    [root@ars810test /tmp]# chown -R tomcat:tomcat /opt/bmc/ARSystem/midtier

    [root@ars810test /tmp]# mkdir /opt/bmc/ARSystem/midtier/WEB-INF/platform/configuration/org.eclipse.osgi/

    [root@ars810test /tmp]# mkdir /opt/bmc/ARSystem/midtier/WEB-INF/platform/configuration/org.eclipse.osgi/.manager/

    [root@ars810test /tmp]# chown -R tomcat:tomcat /opt/bmc/ARSystem/midtier/WEB-INF/platform/configuration/org.eclipse.osgi/

    [root@ars810test /tmp]# mkdir /opt/bmc/ARSystem/midtier/WEB-INF/platform/configuration/org.eclipse.update

    [root@ars810test /tmp]# chown -R tomcat:tomcat /opt/bmc/ARSystem/midtier/WEB-INF/platform/configuration/org.eclipse.update

    vi /usr/share/tomcat6/conf/arsysworker.properties

    worker.list=arsysWorker1

    #worker.arsysWorker1.port=8029

    worker.arsysWorker1.port=8009

    worker.arsysWorker1.host=localhost

    worker.arsysWorker1.type=ajp13

    [root@ars810test /tmp]# service tomcat6 restart

    [root@ars810test /tmp]# service httpd restart

     

    Configure Mid-Tier from your browser, and re-add the server with fully qualified domain name if needed:

    https://ars810test/arsys/shared/config/config.jsp