欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

jamf smart group criteria and or 智慧能群组(智能组) 规则 and or AG chatgpt 有大用 有大大用 有大大大用

In Jamf Pro, you combine multiple criteria in a smart group using the Add and Show Advanced Criteria buttons, and then select the relationship between criteria using And/Or pop-up menus to specify logicTo group criteria, you use parentheses within the criterion list to define the order of operations, similar to algebraic expressions, ensuring that nested logical operations are performed first. 
在 Jamf Pro 中,您使用“添加”和“显示高级条件”按钮在智能组中组合多个条件,然后通过 And/Or 弹出菜单选择条件之间的关系以指定逻辑。要组合条件,您在条件列表中使用括号来定义运算顺序,类似于代数表达式,确保嵌套的逻辑运算首先执行。
Adding and Combining Criteria
添加和组合条件

  1. Navigateto the smart group you want to edit or create a new one. 
    导航至您要编辑的智能组或创建一个新的智能组。

  2. Go to the Criteria tab . 
    进入条件选项卡。

  3. Click Addto reveal a list of common criteria or click Show Advanced Criteria to see all available criteria. 
    点击添加:显示常用标准列表,或点击显示高级标准查看所有可用标准。

  4. Selectthe criteria you want to add to your smart group. 
    选择:您要添加到智能组的标准。

  5. Choose an Operatorfrom the pop-up menu that appears next to the criterion to set how it relates to other criteria. 
    从标准旁边出现的弹出菜单中选择运算符:设置其与其他标准的关系方式。

Using AND/OR Logic
使用 AND/OR 逻辑
 

  • AND:The And operator requires all selected conditions to be true for a device to be included in the group.
    And 运算符要求所有选定的条件都为真,设备才会被包含在组中。

  • OR:The Or operator requires at least one of the selected conditions to be true for a device to be included.
    Or 运算符要求至少有一个选定的条件为真,设备才会被包含。

Grouping with Parentheses
使用括号进行分组
 

  • For more complex logic, use parentheses to group criteria together.
    对于更复杂的逻辑,使用括号将条件组合在一起。

  • This creates nested logic, much like in a mathematical equation, where operations inside the parentheses are performed first.
    这会创建嵌套逻辑,类似于数学方程式中的操作,括号内的操作会首先执行。

Example of Parenthetical Grouping
括号分组的示例
You could use parentheses to create a group of devices that are either "macOS versions greater than 13" AND "Managed" OR "low disk space" and "not in a specific group". 
你可以使用括号来创建一个设备组,该组满足以下条件之一:"macOS 版本大于 13"并且"已管理" 或 "磁盘空间低"并且"不属于特定组"。
Best Practice  最佳实践 

  • For complex criteria, consider creating multiple, simpler smart groups with a clear naming convention rather than one large, complex group.
    1)   对于复杂的条件 多个  and or ,建议创建多个简单的智能组,并使用清晰的命名规范,而不是创建一个庞大复杂的组。

  • 2)  对于复杂的条件 多个  and or ,也可以通过库存属性(创建 延伸功能属性 扩展属性 脚本)来实现

  • 3) 对于复杂的条件 多个  and or   可以见   /node-admin/22948   OK 有大用 

  • Troubleshooting is easier with simpler groups, and it allows for better reusability of the groups for other policies and tasks.
    简单的组更容易进行故障排除,并且可以更好地将组用于其他策略和任务。


普通分类: