Skip to content

Instantly share code, notes, and snippets.

@PeterS242
Created May 13, 2016 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeterS242/08185e781781757158909742db360606 to your computer and use it in GitHub Desktop.
Save PeterS242/08185e781781757158909742db360606 to your computer and use it in GitHub Desktop.
[root@swlx17 ~]# salt linux --async cmd.run 'echo Hello test.'
Executed command with job ID: 20160513131049252101
[root@swlx17 ~]# salt-run jobs.print_job 20160513131049252101
20160513131049252101:
----------
Arguments:
- echo Hello test.
Function:
cmd.run
Minions:
- linux
Result:
----------
StartTime:
2016, May 13 13:10:49.252101
Target:
linux
Target-type:
glob
User:
sudo_s52810
[root@swlx17 ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment