Content Caching - Logging Client Identity
Content Caching - Logging Client Identity
- Subject: Content Caching - Logging Client Identity
- From: Caroline <email@hidden>
- Date: Wed, 13 Jun 2018 12:10:36 -0700
As you hopefully all have heard, Caching Server was removed from macOS Server
in the fall and became part of macOS High Sierra. In High Sierra, it is now a
service called “Content Caching” and can be turned on and configured in the
“Sharing” Preference Pane in System Preferences.
One thing that has caused some questions is how to know if your client machines
are actually talking to your High Sierra computers running the “Content
Caching” service. One way to test this is to turn on the Client Identity
Logging on your High Sierra Content Caching machine. The simplest way to do
this is to break out the terminal application and use the commands:
Stop the Content Caching Service:
sudo AssetCacheManagerUtil deactivate
Turn on the Client Identity Logging:
sudo -u _assetcache defaults write
/Library/Preferences/com.apple.AssetCache.plist LogClientIdentity -bool TRUE
Start the Content Caching Service:
sudo AssetCacheManagerUtil activate
Once you have done those commands, the Caching Service will begin logging
information about each client that talks to it. At a minimum, it will log the
IP address of the client, what type of client, and what version of operating
system that client is running. For example, you might find an entry like this:
Received GET request from 192.168.16.162:49632 [MacAppStore/2.3 (Macintosh; OS
X 10.13.2
To view the logs from the Terminal, you can type this command:
log show --info --debug --predicate 'subsystem == “com.apple.AssetCache”'
That command should show you all the entries in the logs relating to the
caching service on that Mac.
You can also stream the logs in realtime by using this command:
log stream --info --debug --predicate 'subsystem == "com.apple.AssetCache"'
Finally, you can also stream the logs in realtime in the Console application by
clicking on the name of the computer in the upper left hand side and the in the
search box typing the string “AssetCache”
For more info about Content Caching, see these articles:
About content caching on Mac
<https://support.apple.com/guide/mac-help/MCHL9388BA1B/10.13/mac/10.13.5
<https://support.apple.com/guide/mac-help/MCHL9388BA1B/10.13/mac/10.13.5>>
Content caching preferences on Mac
<https://support.apple.com/guide/mac-help/MCHLEAF1E61D/10.13/mac/10.13.5
<https://support.apple.com/guide/mac-help/MCHLEAF1E61D/10.13/mac/10.13.5>>
Manage content caching on Mac
<https://support.apple.com/guide/mac-help/MCHL3B6C3720/10.13/mac/10.13.5
<https://support.apple.com/guide/mac-help/MCHL3B6C3720/10.13/mac/10.13.5>>
Configure advanced content caching settings on Mac
<https://support.apple.com/guide/mac-help/MCHL91E7141A/10.13/mac/10.13.5
<https://support.apple.com/guide/mac-help/MCHL91E7141A/10.13/mac/10.13.5>>
View content caching logs and statistics on Mac
<https://support.apple.com/guide/mac-help/MCHL0D8533CD/10.13/mac/10.13.5
<https://support.apple.com/guide/mac-help/MCHL0D8533CD/10.13/mac/10.13.5>>
Let us know if you have any questions.
Caroline Gallup, Systems Engineer
Apple Education
Apple Inc.
(206) 940-9291
www.apple.com/education
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Wa-edu mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman//listinfo/wa-edu