$ sudo apt-get install clusterssh
$ dpkg -L clusterssh /. /usr /usr/bin /usr/bin/cssh /usr/share /usr/share/pixmaps /usr/share/pixmaps/clusterssh-32x32.xpm /usr/share/applications /usr/share/applications/clusterssh.desktop /usr/share/man /usr/share/man/man1 /usr/share/man/man1/ctel.1p.gz /usr/share/man/man1/ccon.1p.gz /usr/share/man/man1/cssh.1p.gz /usr/share/man/man1/crsh.1p.gz /usr/share/man/man3 /usr/share/man/man3/App::ClusterSSH::Base.3pm.gz /usr/share/man/man3/App::ClusterSSH::L10N.3pm.gz /usr/share/man/man3/App::ClusterSSH::Host.3pm.gz /usr/share/man/man3/App::ClusterSSH.3pm.gz /usr/share/man/man3/App::ClusterSSH::L10N::en.3pm.gz /usr/share/perl5 /usr/share/perl5/App /usr/share/perl5/App/ClusterSSH /usr/share/perl5/App/ClusterSSH/L10N /usr/share/perl5/App/ClusterSSH/L10N/en.pm /usr/share/perl5/App/ClusterSSH/Base.pm /usr/share/perl5/App/ClusterSSH/L10N.pm /usr/share/perl5/App/ClusterSSH/Host.pm /usr/share/perl5/App/ClusterSSH.pm /usr/share/doc /usr/share/doc/clusterssh /usr/share/doc/clusterssh/README /usr/share/doc/clusterssh/copyright /usr/share/doc/clusterssh/README.Debian.gz /usr/share/doc/clusterssh/changelog.Debian.gz /usr/share/menu /usr/share/menu/clusterssh /usr/bin/ccon /usr/bin/crsh /usr/bin/ctel /usr/bin/clusterssh /usr/share/man/man1/clusterssh.1.gz
El fitxer /etc/clusters és el fitxer principal de configuració de cssh, conté la configuració del sistema.
NOTA: També es pot fer una configuració per user editant el fitxer ~/.csshrc. El format del fitxer és el mateix en tots dos casos
El primer que cal fer és definir un cluster:
clusters = cluster1
NOTA: Es poden definir múltiples clusters
Ara cal definir les màquines que formen part del cluster:
cluster1 = test1 test2
By calling out the "all" cluster as containing cluster1 and cluster2, if either of those clusters ever change, the change is automatically captured so you don't have to update the "all" definition. This will save you time and headache if your .csshrc file ever grows in size.
Un exemple d'ús sense fitxer de configuració
$ cssh [email protected] [email protected]
Si voleu que no us pregunti paraules de pas cal tenir les claus instal·lades.
$ cat /usr/share/doc/clusterssh/README App-ClusterSSH The is the Perl application bundle for ClusterSSH (a.k.a cssh), formally a GNU tools based project. ClusterSSH is a tool for making the same change on multiple servers at the same time. The 'cssh' command opens an administration console and an xterm to all specified hosts. Any text typed into the administration console is replicated to all windows. All windows may also be typed into directly. This tool is intended for (but not limited to) cluster administration where the same configuration or commands must be run on each node within the cluster. Performing these commands all at once via this tool ensures all nodes are kept in sync. For more information, go to http://clusterssh.sourceforge.net ...