Carbon Black Cloud/Defense and Big Sur

sshort
Valued Contributor

My org uses Carbon Black and our goal is to transition all our Catalina and Big Sur users to the upcoming system extension "mode" and away from the kernel extension. To assist with scoping some policies I put together an extension attribute that determines the current status, and thought I'd post in case someone finds it helpful.

#!/bin/bash

# Determine Carbon Black Extension Type

# Find the installed Carbon Black Cloud version
cbVersion=$( defaults read /Applications/VMware Carbon Black Cloud/VMware CBCloud.app/Contents/Info.plist CFBundleVersion | cut -c 1-5 )

# Find the Kernel Type status
extensionStatus=$( /Applications/VMware Carbon Black Cloud/repcli.bundle/Contents/MacOS/repcli status | grep 'Kernel Type:' | awk '{ print $3, $4 }' )

if [[ $cbVersion == 3.5* ]]; then
    echo "<result>$extensionStatus</result>"
else
    echo "<result>Version 3.4 or lower</result>"
fi
0 REPLIES 0