I can see that you can pull the OS Build version by running "sw_vers -BuildVersion" from Terminal. I would like to gather the output of this or all the info from "sw_vers" as an extension attribute to build smart groups on. What would be the best way to get this into extension attributes? I see you can build it via a script but still getting into OS X scripting and any help would be appreciated.
Solved
Get OS Build Version via Extension Attribute

Best answer by mm2270
Define a variable in your script that has the command run that gets that information as its result. In the Extension Attribute you echo back the above variable contained within <result> & </result> tags surrounded in quotes. Make sure to use the variable name with a "$" in front within the echo line
#!/bin/sh
OSbuild=`sw_vers -buildVersion`
echo "<result>$OSbuild</result>"
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.