网络推荐



本广告位招租!

推荐给好友 上一篇 | 下一篇

cssh - cluster ssh

BSD爱好者乐园D*E/q)xM"Z

Have you ever needed to do the same task on more than one machine at a time? If so, then clusterssh is the tool for you. From their homepage:BSD爱好者乐园Z6S0J8k;AC%k(f |/|_kx)e

"~j]ll8P y \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.BSD爱好者乐园~.\ @ae)J/I;Zg

T(B!k4Ru IMS[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.BSD爱好者乐园!zD.O(v9X'j

,mi4l%UCp6tI found cssh very useful when I was setting up some jails, each of which was used for Bacula regression testing.
7fr]+N)WPIV 
-D sg&@:AV BSD爱好者乐园+Kh#M7T:K5Y7ru0w
UsingBSD爱好者乐园3O(f`bOs
Using cssh is easy. First, install it:BSD爱好者乐园,| C;}+p:T n(q

:R:`%z8QAVA0{}*ccd /usr/ports/security/csshBSD爱好者乐园D?$H&p2h6H
make install clean

unl(m'U Mb

{g.Wf}4uThis assumes you have x11/xterm installed (I did). Then run it:

A:tI#m HKgR,@vBSD爱好者乐园 q*DQplxz[5SN

cssh mysql41 mysql50 mysql51 mysql54BSD爱好者乐园:S5uJh5LV'i3@Y

BSD爱好者乐园T Nu&vuPX

The following screen shot shows the above session opened and running with crontab -e:

J)Oj\OR0u0kBSD爱好者乐园6G7@gP B|9b mtZ*B

8KF9DC"rEC[R

UQ%kuG#@The small window in the top left is cssh. This is where you type commands that will be echoed to each window. If you need to do something with just one window, click on it and type away. When you want to control all the session again, click on the cssh window.

cG)NI V R B| q\v-^BSD爱好者乐园Z0[$v4v^

This is something I will be using often.

o6y&iU zwgn,E
[重要提醒]对本篇资料有疑问,请到论坛讨论,尽量使文章准确无误>>>
[版权声明]BSD爱好者乐园站内文章,如来源不是互联网,则均系原创或翻译之作,可随意转载,或以此为基础进行演译,但务必以链接形式注明原始出处和作者信息,否则属于侵权行为。另对本站转载他处文章,俱有说明,如有侵权请联系本人,本人将会在第一时间删除侵权文章。
TAG: ssh cluster
 

评分:0

我来说两句

seccode