Advertisement
Guest User

Untitled

a guest
Apr 8th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. [root@saltmaster ~]# salt 'front1' mine.send cmd.run "ls /var/log/" name=varlog
  2. front1:
  3. True
  4. [root@saltmaster ~]# salt 'saltmaster' mine.get 'front1' varlog
  5. saltmaster:
  6. ----------
  7.  
  8. root@saltmaster ~]# salt 'saltmaster' mine.get 'front1' cmd.run
  9. saltmaster:
  10. ----------
  11. front1:
  12. ConsoleKit
  13. VBoxGuestAdditions-uninstall.log
  14. VBoxGuestAdditions.log
  15. anaconda.ifcfg.log
  16. anaconda.log
  17. anaconda.program.log
  18. anaconda.storage.log
  19. anaconda.syslog
  20. anaconda.yum.log
  21. atop
  22. ...
  23.  
  24. Just a test, We'd like to name the mine somehow if possible to store more than a single cmd.run( or other functions), for trying to mine specific information from each server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement