Remote Execution Tool
- No need to place root ssh keys
- No need to install any third party tool/library in advance.
- Keep record of every activity
- Simple and Plain
Often Sys Admins have to do similar kind of tasks on a number of machines. Each and everyone has its own way. Some uses configuration tools like puppet/cfengine. Some uses password less ssh parallel execution or someone might be using either expect or some modules like paramiko to achieve that.
This is also a similar kind of tool. It exploits the power of screen. What it requires to run.
- A central host having bash
- Same above central host having "screen" utility installed.
passwd_file
(see sample file in code). What it can provide:
- logging on every host + on central host
- real time visual monitoring.
- can take actions on individual hosts as well.
- Only for private network.
- Knowing screen usage is advantageous.
HowtoRun
15. Assuming testuser ssh-keys are in place. and testuser is allowed to run some sudo commands (Sudo with password.)
16. Create a task directory and a script that needs to be executed on remote hosts. Please note we have already populated boxes file. Following is the screenshot.
17. Now run following command.