Jump to content

Executar comandos em servidores múltiplos com Linux ou UNIX


Recommended Posts


Many times, you want to execute a command not only on one server, but also on several servers. For example, find out

    * Version of kernel

    * Version of Apache web server

    * Update static html or images files on all web servers via rsync

    * Find out user information, server information, memory usage etc

    * Security/patch checking

I have already covered how to execute commands on multiple Linux or UNIX servers via shell script. The disadvantage of script is commands do not run in parallel on all servers. However, several tools exist to automate this procedure in parallel. With the help of tool called tentakel, you run distributed command execution. It is a program for executing the same command on many hosts in parallel using ssh (it supports other methods too). Main advantage is you can create several sets of servers according requirements. For example webserver group, mail server group, home servers group etc. The command is executed in parallel on all servers in this group (time saving). By default, every result is printed to stdout (screen). The output format can be defined for each group.


O link contem um guia completo para instalar o tentakel. Como podem ler acima, consiste em executar um comando em vários SOs ao mesmo tempo, desde que estejam ligados a um servidor. A vantagem deste processo é o tempo que se ganha. Se executassem comando a comando, pc a pc, perderiam muito mais tempo. Com o tentakel não perdem esse tempo.

É fácil de instalar e fácil de fazer alterações. Têm um guia completo no link que forneci.

Para mim isto não tem grande utilidade, visto que sou um utilizador de Linux muito newb ainda, alem de que possuo apenas um PC. Mas julgo que existem por aí membros que trabalham em empresas de maior dimensão onde isto poderia ser útil caso usassem com SO standard um Linux em todos os PCs da empresa.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.