Skip to main content
Question

MacOS Smart Group based on Remote Lock Command status

  • December 1, 2020
  • 5 replies
  • 50 views

Forum|alt.badge.img+12
  • Valued Contributor

Hi All,

We have a security policy to send a remote lock to machines that have not checked-in for a certain period of time. I'm trying to figure out a way to create a Smart Group using the status of the Remote Lock command.

Obviously, these machines are offline so the command will be sitting in a pending state until they finally come back online. I'd like to create an easy way to search for any machine that has had the command sent to it, even if it has not actually been received yet. This means using some type of server-side value as opposed to a standard EA as the definition.

Does anyone have any ideas?

5 replies

Forum|alt.badge.img+10
  • Valued Contributor
  • February 1, 2021

@tomt what are the settings for your security policy to remote lock?


Forum|alt.badge.img+12
  • Author
  • Valued Contributor
  • February 1, 2021

@sgiesbrecht Hi, I should have been more clear, we have a company security directive to lock machines that have not checked in. The Jamf process is still a manual one.

TomT


Forum|alt.badge.img+10
  • Valued Contributor
  • February 1, 2021

@tomt ah, ok. Thx. back to the drawing board for me


mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • February 1, 2021

Would the API be of help here? There is a /computercommands resource URL. More specifically it looks like you can do a 'GET' on specific commands with /computercommands/name/{name} meaning you could put in DeviceLock for the command to filter for. The output contains things like the JSS ID, Serial Number and UUID strings of the Macs, as well as the APNs results and dates, etc.

Edit: Ok, except the above won't help you actually build a Smart Group, so, yeah, never mind me. Though frankly I don't think what you're after is possible. Smart Groups are inherently based on computer information and if the computers aren't checking in, creating a Smart Group for them is going to be impossible it seems.


Forum|alt.badge.img+12
  • Author
  • Valued Contributor
  • February 1, 2021

Thanks @mm2270 that could definitely get me the info I'm looking for! Now to find time to play with the API. LOL