Display the Site of a Deployed Jamf Computer from the Terminal

ddixon
New Contributor II

Can one display what site a Jamf deployed computer is in from the Terminal application on the client?

2 REPLIES 2

jamf-42
Valued Contributor II

you can use a config profile with a jamf site variable, then read that back with a defaults read.. 

mm2270
Legendary Contributor III

@jamf-42's method is probably the easiest way to do this. You can also just do it with a script writing to a regular plist, like in /Library/Preferences/ for example. But using a profile is just as good and gives you the same results in the end.

Otherwise you would need to use an API call, which gets messy and potentially opens up some security concerns, depending on where and how you are running the API query.