Is there an extended attribute for CrashPlan that will tell me the version?

stevehahn
Contributor

I'm planning an upgrade from CrashPlan 3.8.2010.2 to the latest CrashPlan PROe. I know that the clients will automatically update themselves once the server is updated, but I'd like to be able to monitor this with Casper. Is there an extended attribute available that would let me keep track of what version of the client software is running?

1 ACCEPTED SOLUTION

jhalvorson
Valued Contributor

This following will display the version of CrashPlan installed, but the report won't indicate if it is "CrashPlan" or "CrashPlan PROe". I am not sure how to report on that.

[updated: This works with our install base of CrashPlan PROe devices. I should have pointed out that I have not tested with the consumer version.]

Data Type: String
Input Type: Populated by Script

#!/bin/sh

if [ -f "/Applications/CrashPlan.app/Contents/Info.plist" ] ; then
    VERSION=$( defaults read "/Applications/CrashPlan.app/Contents/Info.plist" CFBundleShortVersionString )
else
    VERSION="Not installed"
fi

echo "<result>$VERSION</result>"

View solution in original post

2 REPLIES 2

jhalvorson
Valued Contributor

This following will display the version of CrashPlan installed, but the report won't indicate if it is "CrashPlan" or "CrashPlan PROe". I am not sure how to report on that.

[updated: This works with our install base of CrashPlan PROe devices. I should have pointed out that I have not tested with the consumer version.]

Data Type: String
Input Type: Populated by Script

#!/bin/sh

if [ -f "/Applications/CrashPlan.app/Contents/Info.plist" ] ; then
    VERSION=$( defaults read "/Applications/CrashPlan.app/Contents/Info.plist" CFBundleShortVersionString )
else
    VERSION="Not installed"
fi

echo "<result>$VERSION</result>"

stevehahn
Contributor

It looks like "CrashPlan" (not the PROe version) doesn't have CFBundleShortVersionString in the info.plist file. So if I use the attribute you wrote, clients that haven't upgraded yet will report as "Not Installed" while clients that have the latest PROe will report the version--this will let me monitor the deployment of the upgraded client, which is my original intent. Thanks!