Reputation: 3507
For my testing environment I want to build a system that can do what I describe below and I would appreciate your feedback on which scripting language\technology is best for doing so. If you think there is no scripting language suitable for this task, I would appreciate your feedback. I would also appreciate any suggestions on how you would approach my task.
Thanks. RaamEE
Application Description:
For example I would like to be able to do the following example:
du -h
du -h
command on each machine.Upvotes: 1
Views: 333
Reputation: 17145
Check also Parallel SSH, here is article with example: http://www.linux.com/archive/feature/151340 . I hope making GUI for it should be trivial if needed.
Upvotes: 1
Reputation: 47321
not sure about GUI, it can done quite easily using shell, like
sql="select ip from table"
cmd="du -h"
for ip in $(mysql -u root -ppassword -h host -N <<<$sql);
do
ssh $ip $cmd > /tmp/$ip.txt
done
ps: make sure is the trust-able user to enter the command
Upvotes: 0