Skip to main content
Solved

OS Version Collisions for years

  • November 18, 2020
  • 10 replies
  • 48 views

rstasel
Forum|alt.badge.img+13

Hi All,

So, with Big Sur being OS 11.x, has anyone come up with a good option for not having that collide with 10.11.x?

Say you have a smart group, and you say "OS Version -like 11.". That matches both 11. and 10.11.

Sure, you could also say AND "OS Version greater than 10.15" or something, but it's still something we're going to have to deal with until Apple gets to macOS 17... (since it appears Big Sur updates are going to be 11.x, so the next major release will be macOS 12).

Thoughts? Am I missing something obvious? Should we just ask for regex for OS version and call it a day?

Best answer by mschroder

Use 'Operating System matches regex', and you can have all the precision you want. '^10.11' for 10.11, '^11' for 11,...

10 replies

rstasel
Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • November 18, 2020

Here's example of current search to avoid collision... yes, there are multiple ways to do this, but it's a bit annoying to have to have multiple conditions.


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • November 18, 2020

@rstasel Why not just use the "greater than or equal" operator with Operating System Version and a value of 11.0? Jamf Pro will (or so I'd hope) evaluate that as higher than 10.11


rstasel
Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • November 18, 2020

@sdagley you’re absolutely right. But obviously that breaks (or rather, would include more than just 11.x) when macOS 12 releases...


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • November 18, 2020

@rstasel You can always us an "AND Operating System Version is less than x.x.x" to provide an upper bound on the range you want a Smart Group to target


rstasel
Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • November 18, 2020

Agreed. I’m not saying there aren’t options (I showed my current one). I’m saying we’ve now hit a problem that it would be nice if Jamf addressed. Regex would fix. So would “starts with” or paying attention to periods (11. != .11.).


Forum|alt.badge.img+12
  • Valued Contributor
  • Answer
  • November 18, 2020

Use 'Operating System matches regex', and you can have all the precision you want. '^10.11' for 10.11, '^11' for 11,...


rstasel
Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • November 18, 2020

@mschroder Thank you! I honestly thought "Operating System" was just some holdover from the attempt to manage windows devices and have largely ignored it.

Perfect! =)


Forum|alt.badge.img+2
  • New Contributor
  • June 16, 2021

I thought the same thing... it seems... wrong. But it works so I'll take it.


rstasel
Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • June 16, 2021

yeah, regex works.


Forum|alt.badge.img+1
  • New Contributor
  • November 18, 2021

duplicate reply..... sorry...