Posted on 03-26-2018 12:16 AM
Is there a way to grab the information about external monitors through the JSS?
We are doing an audit of screens and replacing older ones, and it would be great to be able to pull this information straight from JAMF instead of having to do it manually.
Posted on 03-26-2018 12:33 AM
I'm just using this script to collect the connected display at the time of an inventory collection, the caveat its works fine if you have a static environment but obviously in Agile, where users roam around and connect to different displays it may not suit your needs
displays=$(system_profiler SPDisplaysDataType -xml | grep -A2 "</data>" | awk -F'>|<' '/_name/{getline; print $3}')
echo "<result>$displays</result>"
Posted on 03-26-2018 12:55 AM
@gbidwell Thanks, that's great!
Do you have a method of collating the data after the script is run?
Posted on 03-26-2018 02:18 AM
We use the script as a EA (Extended Attribute), then we just add it to admins standard inventory display then it shown in every smart/static group window created as default.
The results are then just exported as required depending on what we need to audit at the time
As the EA is reliant on getting the data on the inventory collection process it took a week or so before all computers naturally checked in and updated this field with a result.
Others may have a better way of doing this, but the above EA served our requirement.