Posted on 11-25-2014 10:25 AM
Ok. I'm quite new to managing OS X, but I have a test machine that we're running our policies against and I would like to know how to reset the Once Per Computer policy setting for this machine. I've tried running "jamf flushPolicyHistory" but the policy still isn't running (or available in Self-Service).
I'm sure there's an article somewhere I'm missing, but I'm not having good luck finding it.
Thanks!
Posted on 11-25-2014 10:53 AM
The flushPolicyHistory command should actually do it (you're running that from the Mac itself I presume?), but it partly depends on how the Smart Group, if you're using one, may have been set up. If a Mac doesn't fall into Scope for a policy because of a difference in inventory, said policy will never appear for it, even if the policy was flushed.
Alternatively, you can try going into the Policy itself, clicking the Logs button and locate the policy run for that Mac, and click the Flush button next to it. Again, this will not override scope, so while in the policy, check to see how you've set that up.
Posted on 11-25-2014 11:04 AM
Thanks! I did see that the policy eventually ran, but it never seemed to show up in the Self Service application.
Posted on 11-25-2014 12:02 PM
When I'm testing a policy and need to test it out multiple times I often set the execution frequency to on-going. Once you've tested it and are happy you can change it to once per computer but at least it gets that part out of your way while you are developing it.
If its not appearing in Self Service there could be a load of other possible reasons, the most likely being the scoping. Not sure if you are using smart groups for scoping but you could try just scoping to the test Mac to rule that possibility out.