Platform

Platform

A place for Apptio product users to learn, connect, share and grow together.

 View Only

DataLink install on Centos Linux using agent archive installer 

Thu September 13, 2018 09:15 PM

Install DL4 agent on Centos 7 x64

  • Agent used is .tar.gz package.
  • Requires root access or user must be in sudoers.

 

  1. Switch to root user
    su -
    or add user to sudoers "usermod -aG wheel username"
  2. yum install -y curl
  3. curl -L -b "oraclelicense=a" -O http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jre-8u181-linux-x64.rpm
    1. Note: In order to install Oracle Java 8 JRE, you will need to go to the Oracle Java 8 JRE Downloads Page, accept the license agreement, and copy the download link of the appropriate Linux .rpm package.
    2. Substitute the copied download link in place of the bolded part of the curl command.
  4. sudo yum localinstall jre-8u181-linux-x64.rpm
    1. Note: installs into /usr/java/jre1.8.0_181-amd64
  5. Download installer using another machine from your datalink manager instance https://dl-<customer>-manager.apptio.com
    1. Note: in this example I am using linux 64-bit, tgz Agent Archive "agent-installer-x64.tar.gz"
  6. Copy installer to the server
    scp agent-installer-x64.tar.gz username@20.253.25.11:/home/username
  7. Extract
    tar -xzf agent-installer-x64.tar.gz
  8. Move file to /usr/local. Typically this is a default installation directory.
    sudo mv /usr/local/bin
  9. Set java system variables. Note that next time you upgrade agent you may need to re-enter this information.
    1. vim /usr/local/datalink/bin/ApptioDataLink
      In edit mode add the following 3 lines at the top of the file after comments. Save the file.
      JAVA_HOME=/usr/java/jre1.8.0_181-amd64
      INSTALL4J_JAVA_HOME=/usr/java/jre1.8.0_181-amd64
      PATH=$PATH:$JAVA_HOME/bin:$INSTALL4J_JAVA_HOME/bin
  10. Start agent
    sudo /usr/local/datalink/bin/ApptioDataLink start
  11. Stop agent after a minute or so to get agent.config to generate.
    sudo /usr/local/datalink/bin/ApptioDataLink stop
  12. Edit config file to set manager url, agent name and any other parameters.
    vim /usr/local/datalink/agent.config
    1. The following 2 are required. Set a name for agent and enter proper manager URL.
      <displayName>centos vm</displayName>
      <managerUrl>https://dl-yourmanagername-manager.apptio.com</managerUrl>
  13. Start agent.
    sudo /usr/local/datalink/bin/ApptioDataLink start
  14. On another computer in browser navigate to manager and register the agent.
  15. Wait about 5 minutes for engine to start.








#Datalink

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads