Skip to main content
Question

Automating Jamf with code

  • July 2, 2018
  • 3 replies
  • 13 views

Forum|alt.badge.img+1

Hi All,

New to JAMF and wondering what everyone is using for this. Ideally I'd like a Python/Powershell module that can successfully automate processes. I'd use the JAMF/CASPER CLI if you can successfully script with it too (it handles loops, if statements, etc.)
The tasks I'm looking to do right off the bat are;
1) Deployment of apps to machines
2) Query machine statuses (updates pending, versions, etc.)
3) Policy pushes

3 replies

mickgrant
Forum|alt.badge.img+12
  • Contributor
  • July 3, 2018

i don't know why you need a module to do any of those things as they are all handled natively by jamf as it is


Forum|alt.badge.img+16
  • Valued Contributor
  • July 3, 2018

JAMF also has excellent native scripting support built in so basically if you can do it from the command line on a Mac you can do it through JAMF with a script in a policy.


Tangentism
Forum|alt.badge.img+10
  • Honored Contributor
  • July 3, 2018

You need to start looking here about the API and for interfacing using python, look here

But you need to understand the topology of the system: you are making queries to the JSS. Not to each machine. You have to wait for each machine to report into the JSS (or prompt it to)