From 075323b24070f2b85d20c5067fe298c3935c6f0a Mon Sep 17 00:00:00 2001 From: Zack T Date: Tue, 11 Jun 2024 14:24:41 -0700 Subject: [PATCH] v2.13.1 = Bug fixes + Fixed `connectionState ` not being collected; issue reported by @sslawter in #25. + Fixed `[Last ]Established At` times being correctly collected --- .../Extension Attributes/jamf_ea_CrowdStrikeStatus.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jamf Pro/Extension Attributes/jamf_ea_CrowdStrikeStatus.sh b/Jamf Pro/Extension Attributes/jamf_ea_CrowdStrikeStatus.sh index f12f6c3..e6eb2a5 100644 --- a/Jamf Pro/Extension Attributes/jamf_ea_CrowdStrikeStatus.sh +++ b/Jamf Pro/Extension Attributes/jamf_ea_CrowdStrikeStatus.sh @@ -4,7 +4,7 @@ ################################################################################################### # Script Name: jamf_ea_CrowdStrikeStatus.sh # By: Zack Thompson / Created: 1/8/2019 -# Version: 2.13.0 / Updated: 6/7/2024 / By: ZT +# Version: 2.13.1 / Updated: 6/11/2024 / By: ZT # # Description: This script gets the configuration of the CrowdStrike Falcon Sensor, if installed. # @@ -144,7 +144,7 @@ get_falconctl_stats() { # Arguments # $1 = (str) path to falconctl - "${1}" stats agent_info Communications 2>&1 + "${1}" stats agent_info Communications CloudInfo 2>&1 # Will eventually move to the --plist format, once it's fully supported # "${1}" stats agent_info Communications --plist @@ -573,8 +573,8 @@ fi # Get the connection established dates. connectionState=$( echo "${falconctlStats}" | /usr/bin/awk -F "State:" '{print $2}' | /usr/bin/xargs ) -established=$( echo "${falconctlStats}" | /usr/bin/awk -F "[^Last] Established At:" '{print $2}' | /usr/bin/xargs ) -lastEstablished=$( echo "${falconctlStats}" | /usr/bin/awk -F "Last Established At:" '{print $2}' | /usr/bin/xargs ) +established=$( echo "${falconctlStats}" | /usr/bin/awk -F "[[:space:]]+Established At:" '{print $2}' | /usr/bin/xargs ) +lastEstablished=$( echo "${falconctlStats}" | /usr/bin/awk -F "[[:space:]]+Last Established At:" '{print $2}' | /usr/bin/xargs ) if [[ "${connectionState}" == "connected" ]]; then