Skip to main content
Jamf Nation, hosted by Jamf, is a knowledgeable community of Apple-focused admins and Jamf users. Join us in person at the ninth annual Jamf Nation User Conference (JNUC) this November for three days of learning, laughter and IT love.
Posted: by clrlmiller
Downloads: 388
Download

Description

Unfortunately the vendor of this product doesn't include the FULL version of the product in App's CFBundle info (what Casper uses to find app versions). The Version info shows as simply X.X (example v2.2), but won't show as X.X.X (example v2.2.1 or v2.2.5) This extension Attribute was written to better target deploy a newer version for system's still using older copies. #!/bin/sh ############################################################################ # Extension Attribute checks SSL-VPN Version number. ############################################################################ AppFound="false" # Look for the older name App if [ -e "/Applications/Junos Pulse.app" ]; then SSLVPN_Version=$(cat "/Applications/Junos Pulse.app/Contents/Resources/JunosPulseCoreVersion.ini" | grep DisplayVersion | cut -c 16-); AppFound="true" # Look for the newer name App elif [ -e "/Applications/Pulse Secure.app" ]; then SSLVPN_Version=$(cat "/Applications/Pulse Secure.app/Contents/Resources/PulseSecureCoreVersion.ini" | grep DisplayVersion | cut -c 16-); AppFound="true" # If neither found, then say so elif [ AppFound == "false" ]; then SSLVPN_Version="not found" fi # Report result echo "<result>$SSLVPN_Version</result>" exit 0

Preview

Generating Preview...