Apple Studio Display Firmware Extension Attribute

PhillyPhoto
Valued Contributor

With the new firmware being released tonight, I wanted to make sure I could see what versions (of the very limited number) are in our fleet. I threw this EA together, hopefully it can help someone else out!

 

#!/bin/bash
result="<result>NOT Found</result>"
if [[ $(system_profiler SPDisplaysDataType | grep -i "Studio Display") != "" ]]
then
    dispFW1=$(system_profiler SPDisplaysDataType | grep -i "Display Firmware Version:")
    dispFW2=${dispFW#*: Version }
    dispFW3=${dispFW2%)*}
    result="<result>$dispFW3)</result>"
fi
echo "$result"

 

5 REPLIES 5

dmccluskey
Contributor II

Thank you for sharing this.

When i deployed it out, it returns with just )

Apple Studio Display Firmware:)

 

Spelling will get you every time!

#!/bin/bash
result="<result>NOT Found</result>"
if [[ $(system_profiler SPDisplaysDataType | grep -i "Studio Display") != "" ]]
then
    dispFW1=$(system_profiler SPDisplaysDataType | grep -i "Display Firmware Version:")
    dispFW2=${dispFW1#*: Version }
    dispFW3=${dispFW2%)*}
    result="<result>$dispFW3)</result>"
fi
echo "$result"

On a side note, if someone has more than 1 plugged in, it will return:

15.5 (Build 19F80) Display Firmware Version: Version 15.5 (Build 19F80)


I'll try to get to checking for the number of lines returned by the first grep, but if anyone is good with bash, feel free!

a_feliciano
New Contributor II

Thanks for putting this together. Have you had to update the firmware using Jamf or any other automated way? I don't see that the softwareupdate binary pulls it.

I want to bump up this question. I'm having the same issue, and it recently caused a problem with mic and speaker function in Zoom & FaceTime.

dmccluskey
Contributor II

Thanks again for making this.

The update worked