super icon indicating copy to clipboard operation
super copied to clipboard

Utilize AssetCache checking and Mist-CLI to utilize Content Caching natively

Open tranziq opened this issue 1 year ago • 2 comments

By using assetcachelocatorutil you can verify if a content cache is available and reachable.

in the Braindate at JNUC, it was mentioned that Mist CLI can utilize Content caching with a flag

-Brent David

tranziq avatar Oct 02 '24 22:10 tranziq

sounds like a good idea

ofirgalcon avatar Oct 02 '24 22:10 ofirgalcon

FYI, here's info on how to use the caching server with mist-cli

Currently (outside of super) we use something like this with a hard coded caching server address to determine wether or not to call mist-cli with the caching option, as it will fail if it is called with a caching server that is unreachable

ping -c 1 $cachingserver
reachable=$?
if [ $reachable == "0" ]
	then
		echo "caching server is reachable"
		jamf policy -event sequoia-caching-server		
	else
		echo "caching server is unreachable"
		jamf policy -event sequoia-no-caching
fi

If parsing the output from assetcachelocator, that data might be under .results."current user"."saved servers"."shared caching"[] then .healthy, .hostport, and .rank to help determine the best choice

dnikles avatar Oct 10 '24 18:10 dnikles