准备文件: tentakel.conf
tentakel-2.2-1.2.el5.rf.noarch.rpm
安装后, tentakel.conf放在 /etc/下面, 内容如下:
[root@node12 ~]# cat /etc/tentakel.conf
# $Id: tentakel.conf.example,v 1.10 2005/03/13 18:43:41 cran Exp $
# Example configuration file for tentakel
# first section: global parameters
set ssh_path="/usr/bin/ssh"
set method="ssh"
#set user="root" # use EUID of the tentakel process when user is unset
#set format="%d %on"
#set maxparallel="3" # run at most 3 commands in parallel
# second section: groups
group allm()
+node11
+node12
+node13
+node14
+node15
+node17
+node21
查询组内机器内存 (allom为组名) :
tentakel -g allom free
tentakel -g allom + 命令或者执行脚本
使用Ctrl + Z 停止
即可。
/usr/bin/tentakel -h
/usr/lib/python2.6/site-packages/tentakel/plugins/rsh.py:30: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Distributed command execution
Usage: tentakel [ options ] [ command ]
-c file Use file as config file
-g group Select group
-l Print list of available groups
-h Display this help text
-v Display version information
command Remote command. Interactive mode if not specified
See tentakel(1) for more information
/usr/bin/tentakel -c tentakel.conf -g graph date