有没有一种简单的方法来计算匹配返回的仆从数量,例如:
salt -C 'G@ec2_roles:test' match.count
Run Code Online (Sandbox Code Playgroud)
小智 5
您可以添加--summary任何盐调用,例如:
salt -C 'G@ec2_roles:test' --summary
Run Code Online (Sandbox Code Playgroud)
你会在执行结束时得到一个报告,告诉你有多少小兵被攻击:
-------------------------------------------
Summary
-------------------------------------------
# of minions targeted: 528
# of minions returned: 501
# of minions that did not return: 27
# of minions with errors: 0
-------------------------------------------
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1092 次 |
| 最近记录: |