12/27/2023 0 Comments Jamf pro api![]() ![]() Installing and Configuring Ruby on Windows Server DashingFramework.pem, keep this safe as you’ll need it to generate your administrator password on your Windows Server 2012 Create a new keypair and call it some thing relevant, i.e.Add your Storage, the default values are included in the free tier.Leave the Default Network Config (we’ll come back to this).Select the relevant size of your instance, as this is a demo i’m choosing the t2.micro as it has a free tier available.First, I head over to Amazon EC2, Launch an Instance and Select Windows Server 2012 Base. ![]() So for the purposes of this demo I’m using a Windows Server 2012 Base, which is a free tier available on Amazon EC2 and will install the Ruby Framework on the Server. You can run Dashing/Smashing on virtually all platforms that support Ruby, for this example I built it on a Windows Server, and followed this guide to get it configured. So the dashboard which I mentioned runs on an open source framework called Smashing (fork of Dashing.io), which can be found here.Īlthough Dashing is no longer maintained you can still use it and it still works, however there is a fork of Dashing now called Smashing which works just as well. File location will appear below once ready.So one of the big questions I was asked at the London Apple Admins Meetup was around the Dashboard that I mentioned during my talk, so I thought I’d knock up a quick guide to show you all how we at Just Eat went about making this. # Remove the trailing slash from the Jamf Pro URL if needed.Įcho "Report being generated. Read -p "Please enter the password for the $jamfpro_user account: " -s jamfpro_password Read -p "Please enter your Jamf Pro user account : " jamfpro_user ![]() Read -p "Please enter your Jamf Pro server URL : " jamfpro_url # otherwise, you will be prompted to enter the requested URL or account credentials. # If the Jamf Pro URL, the account username or the account password aren't available If [[ $(/usr/bin/sw_vers -productVersion | awk -F. # Use user account's username and password credentials with Basic Authorization to request a bearer token. # This function uses Basic Authentication to get a new bearer token for API authentication. # Jamf Pro URL for the computer inventory record # If FileVault personal recovery key is available Create a report in tab-separated value (.tsv) format which contains the following information ![]() Runs a separate API call to retrieve the following in JSON format. Pulls the following information out of the inventory entry: Uses the Jamf Pro API to download information about the matching computer inventory record in XML format. Uses the Jamf Pro API to download all information about the matching computer inventory record in XML format. # Once the Jamf Pro ID numbers are read from in from the plaintext file, the script takes the following actions: # Usage: /path/to/generate_filevault_recovery_key_report_from_jamf_pro_id_numbers.sh jamf_pro_id_numbers.txt # and uses that information to generate a report about the matching computers' # This script imports a list of Jamf Pro ID numbers from a plaintext file tsv format will contain information similar to what’s shown below: Jamf Pro URL for the computer inventory record.FileVault personal recovery key if available.Create a report in tab-separated value (.tsv) format which contains the following information about the deleted Macs Runs a separate API call to retrieve the following in JSON format.Ĥ. Pulls the following information out of the inventory entry:ģ. Uses the Jamf Pro API to download all information about the matching computer inventory record in XML format.Ģ. Once the Jamf Pro computer ID numbers are read from in from the plaintext file, the script takes the following actions:ġ. path/to/generate_filevault_recovery_key_report_from_jamf_pro_id_numbers /path/to/jamf_pro_id_numbers.txt To store the Jamf Pro URL in the plist file: If setting up a specific Jamf Pro user account for this purpose with limited rights, here are the required API privileges for the account on the Jamf Pro server:įor authentication, the script can accept manual input or values stored in a ~/Library/Preferences/ file. The plist file can be created by running the following commands and substituting your own values where appropriate: tsv format.įor more details, please see below the jump. Return paginated FileVault information for all computers: įor those who want to use this new capability, I’ve written a script which uses the Jamf Pro Classic API and Jamf Pro API to take a list of Jamf Pro computer IDs from a plaintext file, retrieve the associated Macs’ FileVault personal recovery keys and generate a report in.Return FileVault information for a specific computer:.As part of Jamf Pro 10.43’s release, Jamf has added the ability to access and retrieve FileVault personal recovery keys via the Jamf Pro API: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |