macOS Mobile Device Management Debugging

sudo touch /var/db/MDM_EnableDebug
In macOS 10.12 you can configure the logging subsystem via a configuration profile (as above) or by using the log utility like so:

sudo log config --subsystem --mode="level:debug,persist:debug"
You will probably want to reset this back to normal so that debug logs are not persisted like so:

sudo log config --subsystem --reset


Try this:
log show --style compact --predicate '(process CONTAINS "mdmclient")' --last 1d | grep "Unable to create MDM identity"


No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *