SHARE
TWEET

IM2.0 Install - InstallDA

sweenig Apr 25th, 2014 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #echo "Updating the system..."
  2. #yum -y update
  3. echo "Installing missing libraries..."
  4. yum -y install glibc.i686 unzip bc sudo libstdc++-4.4.6-4.el6.i686
  5. echo "Making CentOS look like RHEL 5.8..."
  6. echo "Red Hat Enterprise Linux Server release 5.8 (Tikanga)" > /etc/redhat-release
  7. echo "Disabling SELinux..."
  8. cat /etc/selinux/config | sed -e 's/SELINUX=.*/SELINUX=disabled/' > /etc/selinux/config
  9. echo "Downloading the installer..."
  10. curl -u im20:******** -# -o /opt/CA/installDA.bin http://192.168.1.110/IM20/CA_DA_20_Linux/installDA.bin
  11. echo "Installing the Data Aggregator..."
  12. chmod u+x /opt/CA/installDA.bin
  13. echo 'DM_USER=\"dradmin\"
  14. DM_USER_1=dradmin
  15. DM_USER_BOOLEAN_1=
  16. USER_INSTALL_DIR=/opt/IMDataAggregator
  17. IM_MAX_MEM=\"1G\"
  18. IM_MAX_MEM_1=1G
  19. IM_MAX_MEM_BOOLEAN_1=
  20. DB_SERVER_HOSTNAME=192.168.1.20
  21. DB_SERVER_PORT=5433
  22. DB_INSTANCE_NAME=da_dr
  23. CREATE_SCHEMA_YES=1
  24. CREATE_SCHEMA_NO=0
  25. DB_USER_NAME=dradmin
  26. DB_USER_PASSWORD=7D264472615D4B72692A4470
  27. DB_ADMIN_USER_NAME=dradmin
  28. DB_ADMIN_USER_PASSWORD=7D264472615D4B72692A4470
  29. HTTP_PORT=8581
  30. KARAF_SSH_PORT=8501
  31. -fileOverwrite_/opt/IMDataAggregator/Uninstall/Uninstall.lax=Yes
  32. -fileOverwrite_/opt/IMDataAggregator/apache-karaf-2.1.3.tar.gz=Yes
  33. -fileOverwrite_/opt/IMDataAggregator/IMDataCollector/installDC=Yes
  34. -fileOverwrite_/opt/IMDataAggregator/caim_thirdpartycontent.txt=Yes
  35. -fileOverwrite_/opt/IMDataAggregator/karafd.sh=Yes' > /opt/CA/DAinstaller.properties
  36. /opt/CA/installDA.bin -i silent -f /opt/CA/DAinstaller.properties
  37. echo "Setting up additional CRON jobs..."
  38. echo 'EXECUTED_BY_CRON=1
  39. * * * * * /etc/init.d/dadaemon start > /dev/null' > /home/dradmin/cron.DA
  40. crontab /home/dradmin/cron.DA
  41. top #wait until things calm down (this may take a while, you could probably go to lunch)
RAW Paste Data
Top