DEP troubleshooting

You can find DEP enrollment troubleshooting information in this section.

Device to profile assignments

MicroMDM writes all DEP devices information to /opt/bigfix/config/dep-devices.json file. This file is refreshed approximately every 30 minutes. You can see the profile status and UUID of the profile along with the other device information. You can find out the current device to profile assignments of every enrolled device from this file.

Sample content of dep-devices.json file

[
   {
      "serial_number":"************",
      "model":"iPad",
      "description":"IPAD WI-FI 32GB SPACE GRAY-USA",
      "color":"SPACE GRAY",
      "asset_tag":"",
      "profile_status":"assigned",
      "profile_uuid":"180E3526801006EB204EDC9C3A4C3141",
      "DEPProfileAssignedDate":"2020-10-06T21:07:54Z"
   },
   {
      "serial_number":"************",
      "model":"MacBook Pro 15\"",
      "description":"MBP 15.4/16GB",
      "color":"SILVER",
      "asset_tag":"",
      "profile_status":"pushed",
      "profile_uuid":"180E3526801006EB204EDC9C3A4C3141",
      "DEPProfileAssignedDate":"2020-10-06T21:07:54Z"
   },
   {
      "serial_number":"************",
      "model":"iPhone XR",
      "description":"IPHONE XR BLACK 64GB VZW-USA",
      "color":"BLACK",
      "asset_tag":"",
      "profile_status":"assigned",
      "profile_uuid":"180E3526801006EB204EDC9C3A4C3141",
      "DEPProfileAssignedDate":"2020-10-06T21:07:54Z"
   }
]

Monitor MacOS MCM component logs and metrics

DEP logs are available in /var/log/apple-mdm.log file.

Sample content of apple-mdm.log file

{

  "cursor": "MDowOjE2MTA2NzY3NTA3NzM6MTYxMDY4MTUxOTA5NDp0cnVlOjE2MTA2NzY3NTA3NzM",
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/dep/sync/depsync.go:313",
  "func": "github.com/micromdm/micromdm/platform/dep/sync.(*Watcher).Run",
  "level": "info",
  "module": "default",
  "msg": "Sync DEP devices",
  "time": "2021-01-15T04:01:58Z"
}
{
  "devices": 0,
  "fetched": "2021-01-15T02:12:30Z",
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/dep/sync/depsync.go:347",
  "func": "github.com/micromdm/micromdm/platform/dep/sync.(*Watcher).Run",
  "level": "info",
  "module": "default",
  "more": false,
  "msg": "DEP sync success",
  "phase": "sync",
  "time": "2021-01-15T04:01:59Z"
}
{
  "device_count": 0,
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/device/worker.go:124",
  "func": "github.com/micromdm/micromdm/platform/device.(*Worker).updateFromDEPSync",
  "level": "info",
  "module": "default",
  "msg": "Updating devices from DEP",
  "time": "2021-01-15T04:02:00Z"
}
{
  "FilterUDID": null,
  "count of udids in query": 0,
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/device/builtin/db.go:65",
  "func": "github.com/micromdm/micromdm/platform/device/builtin.(*DB).List",
  "level": "info",
  "module": "restapi",
  "msg": "List device db operation called",
  "time": "2021-01-15T04:02:00Z"
}

{
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/dep/define_profile.go:46",
  "func": "github.com/micromdm/micromdm/platform/dep.MakeDefineProfileEndpoint.func1",
  "level": "info",
  "module": "restapi",
  "msg": "Apply dep profile request",
  "profile_name": "DEPTestProfile",
  "time": "2021-01-15T04:12:33Z"
}
{
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/dep/define_profile.go:51",
  "func": "github.com/micromdm/micromdm/platform/dep.MakeDefineProfileEndpoint.func1",
  "level": "info",
  "module": "restapi",
  "msg": "Apply dep profile success",
  "profile_name": "DEPTestProfile",
  "profile_uuid": "EB7A65BC96583B0C77DE990633C2EAD3",
  "time": "2021-01-15T04:12:33Z"
}
{
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/dep/sync/apply_autoassigner.go:32",
  "func": "github.com/micromdm/micromdm/platform/dep/sync.MakeApplyAutoAssignerEndpoint.func1",
  "level": "info",
  "module": "restapi",
  "msg": "Apply dep autoassigner request",
  "profile_uuid": "EB7A65BC96583B0C77DE990633C2EAD3",
  "time": "2021-01-15T04:12:33Z"
}
{
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/dep/sync/apply_autoassigner.go:37",
  "func": "github.com/micromdm/micromdm/platform/dep/sync.MakeApplyAutoAssignerEndpoint.func1",
  "level": "info",
  "module": "restapi",
  "msg": "Apply dep autoassigner success",
  "profile_uuid": "EB7A65BC96583B0C77DE990633C2EAD3",
  "time": "2021-01-15T04:12:33Z"
}
{
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/dep/sync/syncnow.go:21",
  "func": "github.com/micromdm/micromdm/platform/dep/sync.MakeSyncNowEndpoint.func1",
  "level": "info",
  "module": "restapi",
  "msg": "Dep syncnow request",
  "time": "2021-01-15T04:13:01Z"
}
{
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/dep/sync/depsync.go:380",
  "func": "github.com/micromdm/micromdm/platform/dep/sync.(*Watcher).Run",
  "level": "info",
  "module": "default",
  "msg": "Explicit DEP sync requested",
  "time": "2021-01-15T04:13:01Z"
}
{
  "cursor": "MDowOjE2MTA2NzY3NTA3NzM6MTYxMDY4MzMxOTA5Mjp0cnVlOjE2MTA2NzY3NTA3NzM",
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/dep/sync/depsync.go:313",
  "func": "github.com/micromdm/micromdm/platform/dep/sync.(*Watcher).Run",
  "level": "info",
  "module": "default",
  "msg": "Sync DEP devices",
  "time": "2021-01-15T04:13:01Z"
}
{
  "devices": 0,
  "fetched": "2021-01-15T02:12:30Z",
  "file": "/opt/bigfix/src/github.com/micromdm/micromdm/platform/dep/sync/depsync.go:347",
  "func": "github.com/micromdm/micromdm/platform/dep/sync.(*Watcher).Run",
  "level": "info",
  "module": "default",
  "more": false,
  "msg": "DEP sync success",
  "phase": "sync",
  "time": "2021-01-15T04:13:01Z"
}