THE POWER OF THE JAMF BINARY
If you’ve been using jamf for any period of time, I’m sure you’re familiar with the jamf binary. This is the bash commands that are installed on any enrolled computer. You’ve probably used a couple of them, including “jamf policy” and “jamf recon” – however, you may not be aware of how powerful the jamf binary actually is, especially if you’re a proficient scripter. Lets look at a couple powerful ones, include “jamf policy” and “jamf recon” :
jamf policy
You may know that jamf policy kicks off the recurring checkin, and probably use it in testing so you don’t have to wait the 5-60 minutes for the recurring checkin to kick off. However, there’s a lot of powerful flags that it also has:
-trigger
This allows you to kick off a particular event other than recurring checkin. For instance, if a policy is set to run a login and you want to test it without logging out and back in, you could do jamf policy -trigger login
You can also use this to kick off a custom trigger, which you can define within the policy itself inside jamf. For instance, if you had several policies with a custom trigger of “test” – you could kick that off during your script by using jamf policy -trigger test