We have a couple dozen Sites defined with Macs assigned accordingly. The problem is we have a bunch of Macs that are NOT assigned to any Sites. I'm trying to figure out how to craft a search or smart group to show me all Macs that are assigned to "None" for the site. There doesn't appear to be any way to define Sites as search criteria. Is there a method I'm missing that will tell me what I need to know?
Find Macs NOT assigned to a site
Best answer by swapple
One kludgy way to do this is to make smart groups scoped to each site, so
smart groups (criteria can be computer name is not blank) named
site= acme1,
site= acme2,
site= acme3 and so on.
Now we have defined the sites as a criteria, as smart groups.
Then make a smart group not scoped to any site named "site = none" and in the criteria, pick
computer group not member of site = acme1, AND
computer group not member of site = acme2, AND
computer group not member of site = acme3, AND
and so on. Make a new site, make a new smart group for it and also add it to the none smart group.
Kludgy I know.
Option 2 would be to make a policy scoped to each site that does a simple echo sitename > /var/log/theJamfSite.txt then make one EA that <results>cat /var/log/theJamfSite.txt </results> and now you have the site defined.
again, kludgy.
I agree with mm2270 that site should already be a criteria.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
