Difference between revisions of "Salt run.cmd"
Jump to navigation
Jump to search
(Created page with "``` sudo salt -C 'G@os:Windows and myhost*' cmd.run '(stop-service -name sumo-collector)' shell=powershell sudo salt -C 'G@os:Windows and myhost*' cmd.run '(get-service -name...") |
|||
Line 2: | Line 2: | ||
sudo salt -C 'G@os:Windows and myhost*' cmd.run '(stop-service -name sumo-collector)' shell=powershell | sudo salt -C 'G@os:Windows and myhost*' cmd.run '(stop-service -name sumo-collector)' shell=powershell | ||
sudo salt -C 'G@os:Windows and myhost*' cmd.run '(get-service -name sumo-collector)' shell=powershell | sudo salt -C 'G@os:Windows and myhost*' cmd.run '(get-service -name sumo-collector)' shell=powershell | ||
+ | udo salt -C 'G@os:Windows' cmd.run '(ps | findstr my_process_name)' shell=powershell | ||
``` | ``` |
Latest revision as of 21:48, 13 January 2021
sudo salt -C 'G@os:Windows and myhost*' cmd.run '(stop-service -name sumo-collector)' shell=powershell sudo salt -C 'G@os:Windows and myhost*' cmd.run '(get-service -name sumo-collector)' shell=powershell udo salt -C 'G@os:Windows' cmd.run '(ps | findstr my_process_name)' shell=powershell