Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@node1.localdomain linux_server_6.1.9]# sh -x ./CarbonBlackClientSetup-linux-v6.1.9.10139.sh
- + '[' 0 -ne 0 ']'
- + PKG_NAME=CarbonBlackClientSetup-linux-v6.1.9.10139.tgz
- + LOGSDIR=/var/log/cbsensor
- + LOG_FILE=/var/log/cbsensor/install.log
- + SETTINGS_DST_PATH=/var/lib/cb
- + OLDLOGSDIR=/var/log/cb/sensor
- + 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
- ++ uname -r
- + RUNNING_KERNEL=3.10.0-862.11.6.el7.x86_64
- ++ echo 3.10.0-862.11.6.el7.x86_64
- ++ awk '{split($0,a,"-"); print a[1]}'
- + KERNELBASE=3.10.0
- + PLATFORM_RPM_DIR=/opt/cbsensor
- + PLATFORM_RPM=
- + REGEX='s/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p'
- ++ echo ./CarbonBlackClientSetup-linux-v6.1.9.10139.sh
- ++ sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p'
- + PKG_VERSION=6.1.9.10139
- + '[' 3.10.0 == 2.6.32 ']'
- + '[' 3.10.0 == 3.10.0 ']'
- + PLATFORM_RPM=/opt/cbsensor/setup-redhat7.rpm
- + USE_OLD_META_RPM=0
- + '[' '!' -f CarbonBlackClientSetup-linux-v6.1.9.10139.tgz ']'
- ++ which tar
- + TAR=/usr/bin/tar
- + '[' -z /usr/bin/tar ']'
- ++ which rpm
- + RPM=/usr/bin/rpm
- + '[' -z /usr/bin/rpm ']'
- ++ which yum
- + YUM=/usr/bin/yum
- + '[' -z /usr/bin/yum ']'
- + set +e
- ++ readlink -f ./CarbonBlackClientSetup-linux-v6.1.9.10139.sh
- + SCRIPT=/var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/CarbonBlackClientSetup-linux-v6.1.9.10139.sh
- ++ dirname /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/CarbonBlackClientSetup-linux-v6.1.9.10139.sh
- + INSTALLDIR=/var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9
- ++ date
- + DATE='Thu Dec 13 19:51:57 PST 2018'
- + [[ -d /var/log/cbsensor ]]
- + echo '############################################################################'
- + tee -a /var/log/cbsensor/install.log
- ############################################################################
- + echo '## Thu Dec 13 19:51:57 PST 2018'
- + echo '## Installing cbsensor from /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9'
- + tee -a /var/log/cbsensor/install.log
- ## Installing cbsensor from /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9
- + PKG_PATH=/var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/CarbonBlackClientSetup-linux-v6.1.9.10139.tgz
- + SETTINGS_SRC_PATH=/var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/sensorsettings.ini
- + [[ ! -f /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/CarbonBlackClientSetup-linux-v6.1.9.10139.tgz ]]
- + [[ -f /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/sensorsettings.ini ]]
- + [[ -d /var/log/cb/sensor ]]
- + [[ ! -d /var/lib/cb ]]
- + [[ -f /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/sensorsettings.ini ]]
- + cp -f /var/lib/awx/projects/_21__gsid_deployment_project/NA/linux_server_6.1.9/sensorsettings.ini /var/lib/cb
- + chmod 644 /var/lib/cb/sensorsettings.ini
- ++ rpm -q cb-linux-sensor
- + CB_RPM_UNIST='package cb-linux-sensor is not installed'
- + rval=1
- + [[ 1 -eq 0 ]]
- ++ /usr/bin/rpm -qa
- ++ awk '{ a=1-a; if(!a) print $0 }'
- ++ grep cbsensor
- + hasDups=
- + '[' -n '' ']'
- + mkdir -p /opt/cbsensor
- + '[' 0 = 0 ']'
- + /usr/bin/tar xvzf CarbonBlackClientSetup-linux-v6.1.9.10139.tgz -C /opt/cbsensor
- + tee -a /var/log/cbsensor/install.log
- setup-redhat6.rpm
- setup-redhat7.rpm
- + '[' 0 -ne 0 ']'
- ++ /usr/bin/rpm -qa --queryformat '%{version}' cbsensor
- + oVersion=v5.2.17.10027
- ++ /usr/bin/rpm -qp --queryformat '%{version}' //opt/cbsensor/setup-redhat7.rpm
- + nVersion=v6.1.9.10139
- + op=install
- + '[' v5.2.17.10027 == v6.1.9.10139 ']'
- + version_gt v5.2.17.10027 v6.1.9.10139
- ++ echo v5.2.17.10027 v6.1.9.10139
- ++ tr ' ' '\n'
- ++ head -n 1
- ++ sort -V
- + test v5.2.17.10027 '!=' v5.2.17.10027
- + echo '## install v5.2.17.10027 -> v6.1.9.10139'
- + tee -a /var/log/cbsensor/install.log
- ## install v5.2.17.10027 -> v6.1.9.10139
- + test -f /usr/bin/yum
- + /usr/bin/yum install -y /opt/cbsensor/setup-redhat7.rpm
- + tee -a /var/log/cbsensor/install.log
- Loaded plugins: enabled_repos_upload, package_upload, product-id, rhnplugin,
- : search-disabled-repos, subscription-manager
- This system is not registered with RHN Classic or Red Hat Satellite.
- You can use rhn_register to register.
- Red Hat Satellite or RHN Classic support will be disabled.
- Examining /opt/cbsensor/setup-redhat7.rpm: cbsensor-v6.1.9.10139-1.x86_64
- Marking /opt/cbsensor/setup-redhat7.rpm as an update to cbsensor-v5.2.17.10027-1.x86_64
- Resolving Dependencies
- 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).
- --> Running transaction check
- ---> Package cbsensor.x86_64 0:v5.2.17.10027-1 will be updated
- ---> Package cbsensor.x86_64 0:v6.1.9.10139-1 will be an update
- --> Finished Dependency Resolution
- Dependencies Resolved
- ================================================================================
- Package Arch Version Repository Size
- ================================================================================
- Updating:
- cbsensor x86_64 v6.1.9.10139-1 /setup-redhat7 9.6 M
- Transaction Summary
- ================================================================================
- Upgrade 1 Package
- Total size: 9.6 M
- Downloading packages:
- Running transaction check
- Running transaction test
- Transaction test succeeded
- Running transaction
- Updating : cbsensor-v6.1.9.10139-1.x86_64 1/2
- Stopping daemon...
- Stopping cbdaemon (via systemctl): [ OK ]
- Removing daemon...
- Stopping kernel module
- rmmod: ERROR: Module cbsensor is not currently loaded
- Deleting kernel modules from disk
- Uninstall phase 1 completed
- Cleanup : cbsensor-v5.2.17.10027-1.x86_64 2/2
- Uninstalling kernel module
- Cb Enterprise Response Sensor has been uninstalled
- Adding daemon...
- Installing kernel module for 3.10.0-862.11.6.el7.x86_64
- Starting daemon...
- Starting cbdaemon (via systemctl): [ OK ]
- Cb Enterprise Response Sensor is now installed
- Uploading Package Profile
- Verifying : cbsensor-v6.1.9.10139-1.x86_64 1/2
- Verifying : cbsensor-v5.2.17.10027-1.x86_64 2/2
- Updated:
- cbsensor.x86_64 0:v6.1.9.10139-1
- Complete!
- Uploading Enabled Repositories Report
- Loaded plugins: product-id, rhnplugin, subscription-manager
- This system is not registered with RHN Classic or Red Hat Satellite.
- You can use rhn_register to register.
- Red Hat Satellite or RHN Classic support will be disabled.
- + '[' install == reinstall ']'
- ++ rpm -q cb-linux-sensor
- + CB_RPM_UNIST='package cb-linux-sensor is not installed'
- + rval=1
- + [[ 1 -eq 0 ]]
- + [[ -e /opt/cbsensor/*.rpm ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement