Jamf Policies Stuck in Pending

MBlank
Contributor

I made two polices based on this posting:https://www.jamf.com/blog/reinstall-a-clean-macos-with-one-button/

I've been able to get them to work a few times by purging the logs and waiting until check-in but since yesterday they don't seem to be functioning anymore and I'm trying to figure out why. 

The machine in question is online (and located about a foot from me) and while it does have Big Sur on it these policies have previously worked to download, wipe and reinstall Big Sur and then start the enrollment process. 

I've set the scope to specifically this one test machine as I previously have done but the logs don't show any changes. I was wondering if anyone has any ideas. I'd like to be able to re-apply these policies when needed without any issues. 

Screen Shot 2021-09-03 at 9.49.59 AM.pngScreen Shot 2021-09-03 at 9.50.18 AM.png

5 REPLIES 5

talkingmoose
Moderator
Moderator

The erase policy will have to run after the policy that caches the Big Sur installer. You can try running them manually from your test Mac in the correct order and see if something shows the problem.

  1. View each policy as you're showing in your screenshots. Then locate the ID in the URL of each policy. It will look something like "id=28".
  2. On your test Mac, open the Terminal application and first trying checking for policies. If your Mac is in scope for any policies to run, you'll see each one running. Verify you see both policies running in the correct order.

    sudo jamf policy

  3. You can also call each policy by its ID to run it. Be sure to include the correct policy ID in your command. Call the Install macOS Big Sur policy first. Verify you see the installer appear in the Applications folder.

    sudo jamf policy -id 28

If Terminal reports no policies are found, then verify the Scopes for each policy. You may need to adjust the criteria of your group if you're scoping to a group.

MBlank
Contributor

Well part of it started working. The installer/erase policy failed but makes sense because the download hadn't completed. I'm waiting for this policy to try again. 

 

Has anyone ever run into these two policies creating three Macintosh HD's? Two show the standard contents and one is blank. This is on the desktop which has "show disk" enabled. 

moore26
New Contributor

Hello @MBlank,

 

I am having the same problem, but not necessarily have access to the user's machine so re-enrolling might not be an option now.
Btw, where can I find a policy's ID so I can run sudo jamf policy -id xxx ?
Cheers

My Balance Now

moore26
New Contributor

..

user-qHFlIsdGUC
New Contributor II

I found the Policy ID in the URL (https://xxxxxx.jamfcloud.com/policies.html?id=7&o=l)