A couple of years ago, I shared a method to set a Mac’s hostname via a Google Sheet. It’s worked well at my organization (as well as many others!) and helped us keep our computer names consistent.
We’ve since moved to using Snipe-IT for asset management. Snipe is a fantastic open-source tool that simplifies inventory tracking for our whole IT shop. It also includes a robust API that allows us to integrate with external systems and processes.
I’m now using the Snipe API to script our computer naming process. We treat Snipe as the system of record for all inventory, and any change made to a computer’s hostname in Snipe can be reflected on both the client system and in Jamf Pro. Here’s how.