mut icon indicating copy to clipboard operation
mut copied to clipboard

MUT 6.2.1 fails to remove mobile devices from PreStage "DEVICE_DOES_NOT_EXIST_ON_TOKEN"

Open pweroherc opened this issue 1 year ago • 1 comments

  • My .csv is only 1 column, titled "Mobile Device Serial" and contains a list of 100+ serial numbers.

  • The user account has appropriate permissions for this task.

  • These devices are assigned to MDM via ASM... member of the automatic Pre-Stage but have not been booted or enrolled yet, trying to put them in the correct pre-stage before booting for first time (wondering if this is my issue?)

I'm hesitant to attempt the "classic" version due to avoiding unnecessary load on our server.

Am I missing something? Thanks in advance for any assistance.

2025-04-10 11:08:56 [INFO ]: A new token was successfully generated by MUT. 200. 2025-04-10 11:09:09 [INFO ]: Presenting template save dialogue. 2025-04-10 11:09:11 [INFO ]: Saving template zip file to /Users/me/Desktop/MUT%20Templates.zip 2025-04-10 11:09:35 [INFO ]: Presenting template save dialogue. 2025-04-11 09:56:15 [INFO ]: No stored delimiter found. Using default comma delimiter. 2025-04-11 09:56:15 [INFO ]: No stored info found in KeyChain. 2025-04-11 09:56:34 [INFO ]: A new token was successfully generated by MUT. 200. 2025-04-11 09:58:07 [INFO ]: Token has 1117 seconds left to live. Proceeding with current token. 2025-04-11 09:58:07 [INFO ]: Beginning CSV Parse - Scope update. 2025-04-11 09:58:07 [INFO ]: Token has 1117 seconds left to live. Proceeding with current token. 2025-04-11 09:58:07 [INFO ]: Getting current prestage scope from https://myserver/uapi/v2/mobile-device-prestages/1/scope 2025-04-11 09:58:07 [INFO ]: Successful GET completed. 200. 2025-04-11 09:58:07 [INFO ]: Token has 1117 seconds left to live. Proceeding with current token. 2025-04-11 09:58:07 [INFO ]: Updating the current prestage scope at https://myserver/uapi/v2/mobile-device-prestages/1/scope/delete-multiple 2025-04-11 09:58:07 [ERROR ]: Failed scope update. 400. 2025-04-11 09:58:07 [ERROR ]: { "httpStatus" : 400, "errors" : [ { "code" : "DEVICE_DOES_NOT_EXIST_ON_TOKEN", "description" : "OBFUSCATED", "id" : "0", "field" : "serialNumbers" }, { "code" : "DEVICE_DOES_NOT_EXIST_ON_TOKEN", "description" : "OBFUSCATED", "id" : "0", "field" : "serialNumbers" }, { "code" : "DEVICE_DOES_NOT_EXIST_ON_TOKEN", "description" : "OBFUSCATED", "id" : "0", "field" : "serialNumbers" }, { "code" : "DEVICE_DOES_NOT_EXIST_ON_TOKEN", "description" : "OBFUSCATED", "id" : "0", "field" : "serialNumbers" }, { "code" : "DEVICE_DOES_NOT_EXIST_ON_TOKEN", "description" : "OBFUSCATED", "id" : "0", "field" : "serialNumbers" }, { "code" : "DEVICE_DOES_NOT_EXIST_ON_TOKEN", "description" : "OBFUSCATED", "id" : "0", "field" : "serialNumbers" },

pweroherc avatar Apr 11 '25 14:04 pweroherc

Hello,

In the Jamf GUI, can you bring up the prestage with ID 1 and see these devices assigned?

To see if they have synced from ASM, you can go to Settings -> Global -> Automated device enrollment, click on your DEP connection where your devices sync from, and search for your serial numbers.

When I have a bunch of new devices, I use the GUI and filter based on the Device Assigned date. However, you cannot Select/Deselect All - If you remove the filter I think you'll find that ALL devices are checked/unchecked. So I then use the keyboard to flip the check mark with the space bar, so space, tab, tab, space, tab, tab. I'll have to try the API someday!

thanks,

chris

cdenesha avatar Apr 11 '25 17:04 cdenesha