Hi,
I'm trying to figure out the best way to script out via an attribute possibly to compare what our machines are running for EFI and SMC and bounce it up against Apple's website with all of the data listed.
Initially, I figured I could get the model details from a grep of the system_profiler SPHardwareDataType to get the model, SMC and firmware / EFI version. Then take this data and bounce it against Apple's website with this listed via a curl.
To get the data: system_profiler SPHardwareDataType | grep "Model Identifier" | awk '{print $3}'
To store the existing versions:
system_profiler SPHardwareDataType | grep "SMC Version (system):" | awk '{print $4}'
system_profiler SPHardwareDataType | grep "Boot ROM Version:" | awk '{print $4}'
Getting the data for the machine is easy, but trying to grab the data from Apple's table isn't panning out as easy. Apple's site is at: http://support.apple.com/kb/ht1237 which has a table of what is current for each model. I was thinking something along the lines of a silent curl.. e.g. curl -s http://support.apple.com/kb/ht1237 | grep "MacBookPro11,1" and trim from there...etc..
Anyone have or know of a script that will do this already?
Occasionally I get machines that miss the software update or haven't applied it yet.. I was thinking I could set a field/attribute to make it stand out on a report easily..
