Cb Response - Uninstall Cb Sensor
0 Votes |
Versioning - This is the latest version.
1 | Cb Response - Uninstall Cb Sensor | 9/16/2016 11:50:42 AM |
2 | Cb Response - Uninstall Cb Sensor | 8/23/2017 7:53:31 AM |
Description
Property Details
24620 | |
Production - Fully Tested and Ready for Production | |
Cb Response - Uninstall Cb Sensor | |
BESC | |
Troubleshooting | |
Carbon Black | |
N/A | |
1/21/2016 12:00:00 AM | |
IBM BigFix & Carbon Black Integration Content | |
CarbonBlack on 8/23/2017 7:53:31 AM | |
CarbonBlack on 8/23/2017 7:53:31 AM | |
15348 Views / 159 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance

version of client >= "9.0"
Used in 2 fixlets | * Results in a true/false |

if (windows of operating system) then (exists keys whose (value "DisplayName" of it = "Carbon Black Sensor") of key "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of registry) else if (name of operating system starts with "Linux CentOS 7") then (exists package "cbsensor" of rpm) else false

(windows of operating system) OR (exists match (regex "Linux CentOS (6|7)") of name of operating system) OR ((name of operating system starts with "Linux Red Hat") AND (exists file "/etc/redhat-release" whose (exists line whose (exists match (regex "Red Hat Enterprise Linux (Client|Server|Workstation) release 6|7") of it) of it) AND NOT exists file "/etc/vmware-release" whose (exists line whose (it contains "VMware ESX") of it) AND NOT exists file "/etc/enterprise-release" whose (exists line whose (it contains "Enterprise Linux Enterprise Linux") of it)))
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
if {windows of operating system}
waithidden {(if it ends with "%00" then preceding text of first "%00" of it else it) of (value "UninstallString" of key whose (value "DisplayName" of it = "Carbon Black Sensor") of key "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of registry as string)} /S
elseif {(exists match (regex "Linux CentOS (6|7)") of name of operating system) OR ((name of operating system starts with "Linux Red Hat") AND (exists file "/etc/redhat-release" whose (exists line whose (exists match (regex "Red Hat Enterprise Linux (Client|Server|Workstation) release 6|7") of it) of it) AND NOT exists file "/etc/vmware-release" whose (exists line whose (it contains "VMware ESX") of it) AND NOT exists file "/etc/enterprise-release" whose (exists line whose (it contains "Enterprise Linux Enterprise Linux") of it)))}
wait rpm -e cbsensor
endif
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Action 2
Action Link Click
here to review this task in the bigfix.me Content Database.
Script Type
URL
https://bigfix.me/cdb/fixlet/21665
Sharing
Social Media: |