Thunderbolt Display Serial Number Extension Attribute

kenergy
Contributor

Displays thunderbolt Serial #

#!/bin/sh

serial=`system_profiler SPDisplaysDataType | grep -i "Display Serial Number" | sed -e 's/^[ 	]*//' | cut -d " " -f 4`

if [ "$serial" != "" ]; then

echo "<result>$serial</result>"

else

echo "<result>Display Not Found</result>"

fi

exit 0
0 REPLIES 0