Extension attribute script execution

aamjohns
Contributor II

I cannot find the documentation on when exactly extension attribute (by script) are executed. I don't see a way to control it so I am wondering what triggers these scripts?

I have one I would like to run on a timed interval. It is not that important, as in, I don't want to create a script that runs on a loop with a sleep. But if it were possible for me to tell it to run every so often through JSS configuration I would do that. Is that possible?

I am guessing extension attributes by script are run at each inventory collection cycle?

3 REPLIES 3

justinworkman
Contributor

Yep. Each time recon is ran they run. If you do a 'sudo jamf recon' from Terminal, you can see it say 'Finding Extension Attributes'.

stevewood
Honored Contributor II
Honored Contributor II

If you want a script to run at a set interval, your best bet is a LaunchDaemon. You can set the LaunchDaemon to trigger the script at whatever interval you need.

aamjohns
Contributor II

Thank you both for your responses. Both helpful and informative. AJ.