Skip to content

Instantly share code, notes, and snippets.

@mpanighetti
Last active December 8, 2021 15:28
Show Gist options
  • Select an option

  • Save mpanighetti/4f3a6489901a68eeeb1f7bc904fd22c3 to your computer and use it in GitHub Desktop.

Select an option

Save mpanighetti/4f3a6489901a68eeeb1f7bc904fd22c3 to your computer and use it in GitHub Desktop.
Controller Model - Jamf Pro extension attribute. Returns the model name of the built-in controller (e.g. Apple T2 Security Chip), or null if the Mac doesn't have a controller.
#!/bin/bash
echo "<result>$(/usr/sbin/system_profiler SPiBridgeDataType | /usr/bin/awk -F": " '/Model Name/ {print $NF}')</result>"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment