Skip to main content
Question

Flushing pending mobile device commands (but not all) via API


Forum|alt.badge.img+8
  • Contributor
  • 37 replies

Someone accidentally scoped an expensive app that we had 10 licenses for to 4000 iPads. They reversed the scope almost immediately, but now we have a pending command on 3990 iPads that's never going to go through. 

I have some experience with the API and shell scripting, so I thought I could grab a list of commands' UUIDs and delete the ones that meet my criteria, but I don't see a way to flush commands with any precision. Under commandflush, it looks like all I can do is delete all the pending commands on a particular mobile device, which for various reasons we don't want to do — just this one command. Any ideas?

 

2 replies

mvu
Forum|alt.badge.img+20
  • Jamf Heroes
  • 878 replies
  • September 6, 2022

Can you use that same scope/smart group and cancel the MDM commands?

 


Forum|alt.badge.img+8
  • Author
  • Contributor
  • 37 replies
  • September 6, 2022

The problem with doing it that way is that it would cancel all pending commands rather than only those specific mistaken commands, which we'd rather not do.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings