@Jason33:Thank you so much ,
Can you help me to understand the variables like ( 5-8, Mac Pro 9|1(0-6) etc.........
Does this smart group inclusive of Catalina report ? When I pulled the report I could able to see or Catalina OS also. (MacBookAir[5-8]|MacBookPro(9|1[0-6])|MacPro6|iMac(Pro)?1[3-9]?|MacBook(10|9|8)|Macmini[6-8]),.*
Also how do I pull the report from Jamf for the Non eligibility of Catalina upgrade.
If you read that blog post, the section @Jason33 pointed out is pretty clear. If you create a Smart Group using the criteria that is written out in the gray box and add the regex that is in the next gray box, you will have a Smart Group showing you all systems that are compatible with Catalina.
You will need a second Smart Group to show machines that are not eligible. Just reverse your criteria a bit:
That is a regex statement that looks at the model identifiers, and if they match (or do not match) the criteria in that regex statement, then they fall into scope (or out of scope).
If you're not familiar with regex and how to use it, I would suggest doing some Googling and find some learning on it, or buy a book on it. I am not a regex expert by any mean (more like a noob) but I do understand some of the basics to it. You can find some online training/lessons as well, like:
To break down the regex from above a little bit:
To start, the parenthesis around all of the model identifiers groups that part of the lookup.
The pipes "|" in between each model identifier are logical OR, which means that it acts like: "MacBookAir" OR "MacBookPro" OR...
The ",.*" at the end are finishing off the model identifiers with the asterisk acting like a wildcard. The model identifiers are something like "MacBookAir5,1", for example, so the asterisk handles that last digit after the comma.
Looks for model identifiers that start off as "MacBookAir5", "MacBookAir6", "MacBookAir7", or "MacBookAir8".
Looks for model identifiers that start off as "MacBookPro9", "MacBookPro10","MacBookPro11", all the way to "MacBookPro16".
And so on. You can see the different models that are in that regex and should be able to pick through it from there.
Hope that helps.
The regex doesn't include future models so will break for new model identifiers even though Catalina will still run on them (since Apple's requirements all say Model or newer). Here's a revised regex that allows future models too: