└── cachecheck.sh /cachecheck.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # 4 | # 5 | #Jamf Pro Extension Attribute used to return the active Caching Server(s) found by a Mac 6 | #Note that the return is either a multi-line output of IPs or null if none are found 7 | #Note - each server is listed once whether it caches iCloud data or just shared assets 8 | # 9 | # 10 | result=`/usr/bin/AssetCacheLocatorUtil 2>&1 | grep guid | awk '{print$4}' | sed 's/^\(.*\):.*$/\1/' | sort | uniq` 11 | echo "$result" 12 | --------------------------------------------------------------------------------