Skip to main content

Hi folks,

 

is there an overview which variables are available from computers and mobile devices that can be used in scripts?

Greetings Frank

Sorry, theres no edit:

We want to push hardware data (serialnumber, model etc. etc.) from jamf to an external database (iDoIt).


Meanwhile i found https://learn.jamf.com/bundle/jamf-pro-documentation-current/page/Computer_Configuration_Profiles.html

 

But those are kinda basic. I need more of the hardware informations.

  • Model
  • Processor Type
  • Operating System Version
  • Jamf Pro Computer ID

 

And hopefully i don´t have to use a configuration profile for this. A script type python via policy on enrollment would be best.


Sorry, theres no edit:

We want to push hardware data (serialnumber, model etc. etc.) from jamf to an external database (iDoIt).


The only way to export data from Jamf is using Jamfs API. All of the info you listed in your other comment is available with Jamf API.

Jamf Pro API Overview


The only way to export data from Jamf is using Jamfs API. All of the info you listed in your other comment is available with Jamf API.

Jamf Pro API Overview


OK, i have an working api call already. Thought those variables would be available on a more easy way :-)

so just to confirm:

  1. i create a policy which gets executes on "enrollment complete"
  2. in this policy i call a python script
  3. this script does the api shenanigans and pushes it to out database api

Thats it basically?


OK, i have an working api call already. Thought those variables would be available on a more easy way :-)

so just to confirm:

  1. i create a policy which gets executes on "enrollment complete"
  2. in this policy i call a python script
  3. this script does the api shenanigans and pushes it to out database api

Thats it basically?


And $SERIALNUMBER should be available in script right? I need an identifier für the api call


OK, i have an working api call already. Thought those variables would be available on a more easy way :-)

so just to confirm:

  1. i create a policy which gets executes on "enrollment complete"
  2. in this policy i call a python script
  3. this script does the api shenanigans and pushes it to out database api

Thats it basically?


Meh....i just can query on id. But there is no variable für tje jamf id!?