You can put both commands you want in a script and have the policy run the script.
I assume you;re referring to the Run Command field, or whatever its called now in version 9, If so, just put a semi colon between the commands, like this-
jamf manage; jamf policy -trigger <sometrigger>
It will run the first command to completion, then run the second one.
Again... Was hoping to not write a script to do that, but will if I must. In the future I imagine that this would expand in the future than just running simple JAMF tasks.
Hi @easyedc
If you are referring to the advanced run command field in a policy, you can have it run multiple commands by separating them with a semicolon. For example:
echo "Hello" ; echo "world"
I do, however, want to ask you the higher goal of this. Running a lot of manage and recon commands could have ill-effects on the database. So, if I could get a better idea of the workflow you are wanting with the end goals I could maybe give better, or at least more options to help you reach those.
Thanks,
Tom
this post was a brain burp, ignore me!
It really is for a simple policy that generally are run just by the admins to make sure that it's inventoried, has had it's policies run, and all management structures run. it's only run via self service instead of a recurring.
A 'jamf policy' will also run a 'jamf manage' automatically if there is anything different in the management framework in the JSS vs whats set on the machine. You can confirm this by making a change in the Computer Management Framework and then run a 'jamf policy' via terminal, you should see it updating management as well. Out of curiosity, what specifically are you trying to accomplish with a 'manage' command? Its not a bad thing to run since it can remedy issues but I am just curious if you are trying to remedy something else that we can help with.