If you run Fleet for Mac inventory and ServiceNow as the system of record, collecting the data is the easy part. The hard part is getting it into the CMDB in a way that holds up in an audit and doesn't create a second CI for a Mac that was renamed, re-imaged, or already loaded by Jamf, Intune or Discovery.
A CSV export or a script that writes straight into cmdb_ci_computer gets rows in. It also skips identification, which is how you end up with duplicate computers and overwritten fields.
What I do instead (diagram attached):
Treat Fleet as its own discovery source and send every CI through ServiceNow's Identification and Reconciliation Engine (IRE). Design the load to reconcile through IRE identification rules (serial number, name, network adapter). Check the actual rule on your hardware class rather than assuming, and filter out missing or junk serials before they reach IRE.
For a Mac, the payload usually has:
- class cmdb_ci_computer
- the serial number, plus a serial-number record if your rule uses one
- the primary network adapter and IP as dependent CIs in the same payload
- the assigned user looked up to an existing user record, not pasted in as text
- software as SAM install records if you run SAM, or software packages and instances if you don't
Use a stable source key (the hardware UUID works well) so a rename or re-enrollment updates the same CI. If Jamf or another tool already writes model, OS or assigned user on the same Macs, decide precedence before the first production load.
Two rules I don't skip:
- Use a read-only API-only Observer user in Fleet and write nothing back. Keep the token in a Connection & Credential Alias, and use a MID Server if Fleet isn't reachable from the internet.
- Don't delete the CI when a host drops out of Fleet. Flag it stale, make retirement opt-in with a guard for a suddenly shrinking feed, and keep a run history for every import.
Before scheduling anything, load a couple of synthetic test devices into sub-production, run the load twice, and confirm the second run updates instead of inserting.
Longer write-up: https://emetrix.io/articles/fleet-to-servicenow-cmdb
Disclosure: I'm Brandon Wilson, a ServiceNow Certified Technical Architect and the founder of Emetrix Solutions. I built the Emetrix CMDB Connector for Fleet, a ServiceNow scoped app that follows this approach, for Fleet 4.70 and later 4.x. Tested on ServiceNow Zurich and Australia. It is in ServiceNow Store review, with a 30-day Store trial at launch. Details: https://emetrix.io/store/fleet-connector
ServiceNow is a registered trademark of ServiceNow, Inc.; Emetrix is not affiliated with or endorsed by ServiceNow or Fleet Device Management.