Cb Response - Generate and Collect sensor diagnostics
0 Votes |
Description
Property Details
21663 | |
Production - Fully Tested and Ready for Production | |
Cb Response - Generate and Collect sensor diagnostics | |
BESC | |
Troubleshooting | |
Carbon Black | |
N/A | |
1/21/2016 12:00:00 AM | |
IBM BigFix & Carbon Black Integration Content | |
True | |
CarbonBlack on 9/16/2016 11:50:38 AM | |
CarbonBlack on 9/16/2016 11:50:38 AM | |
7985 Views / 137 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance

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

if (windows of operating system) then ((state of service whose (display name of it = "Carbon Black Sensor") = "Running") | False) else (exists file "/opt/cbsensor/sensordiag.sh")

(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}
// Force Carbon Black Sensor Check-In
waithidden sc control carbonblack 200
// Generate Carbon Black Sensor Diagnostics
waithidden sc control carbonblack 201
// set max size to 15 MB to prevent too much data. If the zip file is to bigger than 15 MB the upload won't occur
setting "_BESClient_ArchiveManager_MaxArchiveSize"="15728640" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_OperatingMode"="2" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_FileSet-client"="{pathname of windows folder & "\CarbonBlack\Diagnostics\*.*"}" on "{parameter "action issue date" of action}" for client
// upload results
archive now
else
// Generate Carbon Black Sensor Diagnostics
wait sh /opt/cbsensor/sensordiag.sh
// set max size to 15 MB to prevent too much data. If the zip file is to bigger than 15 MB the upload won't occur
setting "_BESClient_ArchiveManager_MaxArchiveSize"="15728640" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_OperatingMode"="2" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_FileSet-client"="{pathname of client folder of current site & "/sensordiag*.tgz"}" on "{parameter "action issue date" of action}" for client
// upload results
archive now
endif
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
Social Media: |