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"
