This is a totally dumb question, but what exactly is the Trigger type "Enrollment Complete". I assume its set when a new Mac is imaged or a QuickAdd package runs, correct? Are there other situations that qualify as "Enrollment Complete"? Just wanna make sure I fully understand what its doing and what it signifies in the context of JAMF.
I'm asking because I noticed that test Macs that get imaged over and over are not picking up my first-run Policy and related scripts, etc until I manually run:
-sudo jamf flushCaches
-sudo jamf flushPolicyHistory
-sudo jamf manage
1) I was told by Support that there is know bug in the JSS related to this. Not sure exactly what the bug is.
I was told that in 9.81 any "Enrollment Complete" Trigger that runs "Ongoing" should not have the issue mentioned above (i.e.; Macs that are wiped & re-imaged shouldn't hold-on to prevails ran first-run policies, etc). But I am seeing an issue for sure.
2) Next, I was told by JAMF to modify my MySQL database as shown below, but that didn't help either.
flush_management_history_on_remanage from enrollment_settings = set from 0 to 1
flush_location_information_on_remanage from enrollment_settings = set from 0 to 1
flush_management_history_on_remanage from client_check_in = set from 0 to 1
flush_location_information_on_remanage from client_check_in =Already set to 1
(these MySQL settings were set and verified - look perfect)
3) Then I was told that my Policy with the "Enrollment Complete" Trigger may be broken.
I'm checking the /var/log/jamf log file on my test client and I see this single entry.
jamf[1336]: Checking for policies triggered by "enrollmentComplete"...
But that's all I see. Is it reasonable to assume from the line above that policies that are triggered from "Enrollment Complete" are not running as expected on this particular Mac? Shouldn't I see more info in the log?
Are there better was to check the status of Triggers besides the jamf client log?
4) Finally, JAMF support told me to add another Payload to my Enrollment Complete Policy to run the following 1-liner:
"jamf flushPolicyHistory && jamf flushCaches && jamf manage" (Not a separate script, just a one-liner command payload)
Has anyone else see this issue in 9.81? Seems like I'm making a lot of changes all over to work around a single bug.
There are other posts referring to this subject matter, but they are older and thus referring to older version of JAMF, so Im not sure they are identical issues to what I am seeing or not.
JSS 9.81