How to Check for Upgrade Hints in Sensor Logs (Linux)
book
Article ID: 292256
calendar_today
Updated On:
Feedback
Subscribe
Products
Carbon Black Cloud Endpoint Standard (formerly Cb Defense)
Carbon Black Cloud Enterprise EDR (formerly Cb Threathunter)
Show More
Show Less
Issue/Introduction
Provide a method for finding log entries related to Sensor upgrades for Linux devices
Environment
Carbon Black Cloud Sensor: All Versions
Linux OS: All Supported Versions
Resolution
Windows using Notepad++ or similar
Collect a set of full diagnostics logs
Extract diagnostic archive (diags_<hostname>_<timestamp>_<device_id>.tgz) locally
Go to diags_<hostname>_<timestamp>_<device_id>/var/opt/carbonblack/psc/log/
Open log.txt in Notepad++
Search for upgrade hints using a Regular Expression search
hint 12|hint type: 12|SwUpgradeThread|SwUpgradeState|SwUpgradeTool|SetUpgradeMode|CbRpmPackageTool|--- starting|--- agent shutdown
Linux/macOS using Terminal and grep
Collect a set of full diagnostics logs
Extract diagnostic archive (diags_<hostname>_<timestamp>_<device_id>.tgz) locally
Search for upgrade hints using Extended Regular Expression
zgrep --color=always -ani -E 'hint 12|hint type: 12|SwUpgradeThread|SwUpgradeState|SwUpgradeTool|SetUpgradeMode|CbRpmPackageTool|--- starting|--- agent shutdown' ./<PathToExtractedDiags>/diags_<hostname>_<timestamp>_<device_id>/var/opt/carbonblack/psc/log/log.txt
Additional Information
Search results will show when the device received the upgrade hint and information on the version of the Sensor before and after service shutdown/restart as part of the upgrade
Feedback
thumb_up
Yes
thumb_down
No