Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.
Posted: by clrlmiller
Downloads: 224
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...