osxcollector icon indicating copy to clipboard operation
osxcollector copied to clipboard

Update system_info Collection to Include OSX and Build Version

Open fligi7 opened this issue 7 years ago • 0 comments

Issue: As it stands, the system_info collection does not collect or provide the OSX version (e.g., "10.12.4") nor the build version (e.g. "16E195").

Suggestion Solution: Collect hostname and arch from uname, but collect the missing OSX version and Build version from the following plists (depending whether it's a workstation or server).

/System/Library/CoreServices/SystemVersion.plist /System/Library/CoreServices/ServerVersion.plist

https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/sw_vers.1.html

$ plutil -p /System/Library/CoreServices/SystemVersion.plist { "ProductBuildVersion" => "16E195" "ProductCopyright" => "1983-2017 Apple Inc." "ProductVersion" => "10.12.4" "ProductName" => "Mac OS X" "ProductUserVisibleVersion" => "10.12.4" }

fligi7 avatar Apr 20 '17 18:04 fligi7