Posted on 09-23-2013 01:51 PM
I know this might be off topic but I was hoping you all would have some insight on this or maybe a better way to approach it. I wanted to know if it would be possible to have a script check to see what the latest version of a piece of software was and report back the version to me. I have 10 or so pieces of software that we use that I need to make sure are the latest version like Flash and Java. I have to manage all this on the Mac platform.
Does something like that exist already or maybe a site that would already have this information for me?
Thanks,
Posted on 09-23-2013 01:56 PM
Are you asking in relation to the Casper Suite, or is this more a general Mac question?
Posted on 09-23-2013 02:11 PM
More of a general mac scripting question.
Posted on 09-23-2013 09:02 PM
Are you trying to find a way to make smart groups based on versions of Flash and Java? That would be handy.
Posted on 09-24-2013 03:13 AM
I'm sure there are plenty of ways to do this, I know of two for certain. We've had several discussions on this list going back to before it was JAMFNation, about how to gather Flash or Silverlight versions. Here are a couple of those dicsussions:
https://jamfnation.jamfsoftware.com/discussion.html?id=3468
https://jamfnation.jamfsoftware.com/discussion.html?id=28
Basically, if you use the `defaults read` command, you can grab the bundle version for just about any plug in or app on the system. You can then use that information to build an extension attribute (EA) if you are using Casper, or whatever else for whatever other program you might be using. So, for example, to grab the Flash version you'd use:
flashVersion=`defaults read /Library/Internet Plug-Ins/Flash
Player.plugin/Contents/Info CFBundleShortVersionString`
If you wanted the version of Firefox (since they seem to be updating once a week):
firefoxVersion=`defaults read /Applications/Firefox.app/Contents/Info CFBundleShortVersionString`
And so on. Like I said, you can swap out just about any app or plug in you want.
As always, test, test, test, and test again before deploying.
HTH
Steve