Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.02 KB | None | 0 0
  1. [root@node1.localdomain linux_server_6.1.9]# sh -x ./CarbonBlackClientSetup-linux-v6.1.9.10139.sh
  2. + '[' 0 -ne 0 ']'
  3. + PKG_NAME=CarbonBlackClientSetup-linux-v6.1.9.10139.tgz
  4. + LOGSDIR=/var/log/cbsensor
  5. + LOG_FILE=/var/log/cbsensor/install.log
  6. + SETTINGS_DST_PATH=/var/lib/cb
  7. + OLDLOGSDIR=/var/log/cb/sensor
  8. + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/opt/VRTS/bin:/opt/puppetlabs/puppet/bin:/root/bin:/opt/VRTS/bin:/sbin:/usr/sbin:/bin:/usr/bin
  9. ++ uname -r
  10. + RUNNING_KERNEL=3.10.0-862.11.6.el7.x86_64
  11. ++ echo 3.10.0-862.11.6.el7.x86_64
  12. ++ awk '{split($0,a,"-"); print a[1]}'
  13. + KERNELBASE=3.10.0
  14. + PLATFORM_RPM_DIR=/opt/cbsensor
  15. + PLATFORM_RPM=
  16. + REGEX='s/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p'
  17. ++ echo ./CarbonBlackClientSetup-linux-v6.1.9.10139.sh
  18. ++ sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p'
  19. + PKG_VERSION=6.1.9.10139
  20. + '[' 3.10.0 == 2.6.32 ']'
  21. + '[' 3.10.0 == 3.10.0 ']'
  22. + PLATFORM_RPM=/opt/cbsensor/setup-redhat7.rpm
  23. + USE_OLD_META_RPM=0
  24. + '[' '!' -f CarbonBlackClientSetup-linux-v6.1.9.10139.tgz ']'
  25. ++ which tar
  26. + TAR=/usr/bin/tar
  27. + '[' -z /usr/bin/tar ']'
  28. ++ which rpm
  29. + RPM=/usr/bin/rpm
  30. + '[' -z /usr/bin/rpm ']'
  31. ++ which yum
  32. + YUM=/usr/bin/yum
  33. + '[' -z /usr/bin/yum ']'
  34. + set +e
  35. ++ readlink -f ./CarbonBlackClientSetup-linux-v6.1.9.10139.sh
  36. + SCRIPT=/var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/CarbonBlackClientSetup-linux-v6.1.9.10139.sh
  37. ++ dirname /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/CarbonBlackClientSetup-linux-v6.1.9.10139.sh
  38. + INSTALLDIR=/var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9
  39. ++ date
  40. + DATE='Thu Dec 13 19:51:57 PST 2018'
  41. + [[ -d /var/log/cbsensor ]]
  42. + echo '############################################################################'
  43. + tee -a /var/log/cbsensor/install.log
  44. ############################################################################
  45. + echo '## Thu Dec 13 19:51:57 PST 2018'
  46. + echo '## Installing cbsensor from /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9'
  47. + tee -a /var/log/cbsensor/install.log
  48. ## Installing cbsensor from /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9
  49. + PKG_PATH=/var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/CarbonBlackClientSetup-linux-v6.1.9.10139.tgz
  50. + SETTINGS_SRC_PATH=/var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/sensorsettings.ini
  51. + [[ ! -f /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/CarbonBlackClientSetup-linux-v6.1.9.10139.tgz ]]
  52. + [[ -f /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/sensorsettings.ini ]]
  53. + [[ -d /var/log/cb/sensor ]]
  54. + [[ ! -d /var/lib/cb ]]
  55. + [[ -f /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/sensorsettings.ini ]]
  56. + cp -f /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/sensorsettings.ini /var/lib/cb
  57. + chmod 644 /var/lib/cb/sensorsettings.ini
  58. ++ rpm -q cb-linux-sensor
  59. + CB_RPM_UNIST='package cb-linux-sensor is not installed'
  60. + rval=1
  61. + [[ 1 -eq 0 ]]
  62. ++ /usr/bin/rpm -qa
  63. ++ awk '{ a=1-a; if(!a) print $0 }'
  64. ++ grep cbsensor
  65. + hasDups=
  66. + '[' -n '' ']'
  67. + mkdir -p /opt/cbsensor
  68. + '[' 0 = 0 ']'
  69. + /usr/bin/tar xvzf CarbonBlackClientSetup-linux-v6.1.9.10139.tgz -C /opt/cbsensor
  70. + tee -a /var/log/cbsensor/install.log
  71. setup-redhat6.rpm
  72. setup-redhat7.rpm
  73. + '[' 0 -ne 0 ']'
  74. ++ /usr/bin/rpm -qa --queryformat '%{version}' cbsensor
  75. + oVersion=v5.2.17.10027
  76. ++ /usr/bin/rpm -qp --queryformat '%{version}' //opt/cbsensor/setup-redhat7.rpm
  77. + nVersion=v6.1.9.10139
  78. + op=install
  79. + '[' v5.2.17.10027 == v6.1.9.10139 ']'
  80. + version_gt v5.2.17.10027 v6.1.9.10139
  81. ++ echo v5.2.17.10027 v6.1.9.10139
  82. ++ tr ' ' '\n'
  83. ++ head -n 1
  84. ++ sort -V
  85. + test v5.2.17.10027 '!=' v5.2.17.10027
  86. + echo '## install v5.2.17.10027 -> v6.1.9.10139'
  87. + tee -a /var/log/cbsensor/install.log
  88. ## install v5.2.17.10027 -> v6.1.9.10139
  89. + test -f /usr/bin/yum
  90. + /usr/bin/yum install -y /opt/cbsensor/setup-redhat7.rpm
  91. + tee -a /var/log/cbsensor/install.log
  92. Loaded plugins: enabled_repos_upload, package_upload, product-id, rhnplugin,
  93. : search-disabled-repos, subscription-manager
  94. This system is not registered with RHN Classic or Red Hat Satellite.
  95. You can use rhn_register to register.
  96. Red Hat Satellite or RHN Classic support will be disabled.
  97. Examining /opt/cbsensor/setup-redhat7.rpm: cbsensor-v6.1.9.10139-1.x86_64
  98. Marking /opt/cbsensor/setup-redhat7.rpm as an update to cbsensor-v5.2.17.10027-1.x86_64
  99. Resolving Dependencies
  100. There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
  101. --> Running transaction check
  102. ---> Package cbsensor.x86_64 0:v5.2.17.10027-1 will be updated
  103. ---> Package cbsensor.x86_64 0:v6.1.9.10139-1 will be an update
  104. --> Finished Dependency Resolution
  105.  
  106. Dependencies Resolved
  107.  
  108. ================================================================================
  109. Package Arch Version Repository Size
  110. ================================================================================
  111. Updating:
  112. cbsensor x86_64 v6.1.9.10139-1 /setup-redhat7 9.6 M
  113.  
  114. Transaction Summary
  115. ================================================================================
  116. Upgrade 1 Package
  117.  
  118. Total size: 9.6 M
  119. Downloading packages:
  120. Running transaction check
  121. Running transaction test
  122. Transaction test succeeded
  123. Running transaction
  124. Updating : cbsensor-v6.1.9.10139-1.x86_64 1/2
  125. Stopping daemon...
  126. Stopping cbdaemon (via systemctl): [ OK ]
  127. Removing daemon...
  128. Stopping kernel module
  129. rmmod: ERROR: Module cbsensor is not currently loaded
  130. Deleting kernel modules from disk
  131. Uninstall phase 1 completed
  132. Cleanup : cbsensor-v5.2.17.10027-1.x86_64 2/2
  133. Uninstalling kernel module
  134.  
  135. Cb Enterprise Response Sensor has been uninstalled
  136. Adding daemon...
  137. Installing kernel module for 3.10.0-862.11.6.el7.x86_64
  138. Starting daemon...
  139. Starting cbdaemon (via systemctl): [ OK ]
  140.  
  141. Cb Enterprise Response Sensor is now installed
  142. Uploading Package Profile
  143. Verifying : cbsensor-v6.1.9.10139-1.x86_64 1/2
  144. Verifying : cbsensor-v5.2.17.10027-1.x86_64 2/2
  145.  
  146. Updated:
  147. cbsensor.x86_64 0:v6.1.9.10139-1
  148.  
  149. Complete!
  150. Uploading Enabled Repositories Report
  151. Loaded plugins: product-id, rhnplugin, subscription-manager
  152. This system is not registered with RHN Classic or Red Hat Satellite.
  153. You can use rhn_register to register.
  154. Red Hat Satellite or RHN Classic support will be disabled.
  155. + '[' install == reinstall ']'
  156. ++ rpm -q cb-linux-sensor
  157. + CB_RPM_UNIST='package cb-linux-sensor is not installed'
  158. + rval=1
  159. + [[ 1 -eq 0 ]]
  160. + [[ -e /opt/cbsensor/*.rpm ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement