💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[admin@master /srv ]$ sudo salt -C 'S@10.2.11.0/24 and G@os:CentOS' cmd.run 'w' node3.51yuki.cn: 20:44:53 up 1 day, 8:40, 1 user, load average: 0.00, 0.01, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT admin pts/1 10.2.11.176 09:48 10:56m 0.01s 0.01s -bash node2.51yuki.cn: 20:44:53 up 1 day, 8:36, 1 user, load average: 0.00, 0.01, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT admin pts/0 10.2.11.176 09:48 2:43m 0.09s 0.09s -bash 应用场景: 1)使用-C salt -C 'webserv* and G@os:Debian or E@web-dc1-srv.*' test.ping That same example expressed in a top file looks like the following: 2)编写top.sls配置文件 base: 'webserv* and G@os:Debian or E@web-dc1-srv.*': - match: compound - webserver