So a strange thing is happening post 10.10.3. My extension attribute that returns the version of Cisco AnyConnect is broken. It appears that 10.10.2 clients are checking in and reporting the correct version. Since I have policies tied to this, I need to get it working.
Here's the extension attribute code:
#!/bin/sh
#Check to see if Cisco AnyConnect is installed
$plist="/Applications/Cisco/Cisco AnyConnect Secure Mobility Client.app/Contents/Info.plist"
if [[ -f $plist ]]; then
result=`/usr/bin/defaults read /Applications/Cisco/Cisco AnyConnect Secure Mobility Client.app/Contents/Info.plist CFBundleShortVersionString`
echo "<result>$result</result>"
else
echo "<result>Not installed</result>"
fi
If I run this as a script, it fails as well. It appears that it's failing because the
if -f
statement is broken. I thought it might be permissions but it fails even running with sudo. What's strange is, I have a similar extension attribute for checking the McAfee version that I got from JAMF. That one is working. The only thing that's different is, the McAfee app sits in /Applications. I moved the Cisco app to the /Applications folder thinking that could have something to do with it and that too fails.
Even stranger - if I run
result=`/usr/bin/defaults read /Applications/Cisco/Cisco AnyConnect Secure Mobility Client.app/Contents/Info.plist CFBundleShortVersionString`
echo $result
that works perfectly!
Has anyone run into something like this?


