Re: [GTER] Administrando grande quantidade de máquinas
Alexandre Hautequest
hquest at onda.com.br
Fri Oct 29 11:13:35 -03 2004
Alexandre Hautequest wrote:
> Jose de Paula Eufrasio Junior wrote:
>
>>Olá mestres! :)
>>
>>Digamos que você tenha umas 300 máquinas linux para se administrar, e
>>você quer rodar o mesmo comando em todas elas (que são identicas em
>>suas instalacoes, felizmente) de uma só vez.
>>
>>Ao inves de um script e de ssh com chaves sem senha, existe alguma
>>coisa ja criada para isso? Tipo quando você liga varios chassis de
>>MaxTNT juntos e administra todos como um só? :)
>>
>>[]s e TIA
>
>
>
> expect + tcl/tk
>
> tem um exemplo muito util. fica como licao de casa le-lo e
> implementa-lo. nada que uns 5 minutos de folga nao resolvam :)
>
[hquest at hquest:/usr/doc/expect-5.41/example]$ man ./multixterm.man
NAME
multixterm - drive multiple xterms separately or together
SYNOPSIS
multixterm [-xa "xterm args"]
[-xc "command"]
[-xd "directory"]
[-xf "file"]
[-xn "xterm names"]
[-xv] (enable verbose mode)
[-xh] or [-x?] (help)
[xterm names or user-defined args...]
DESCRIPTION
Multixterm creates multiple xterms that can be driven together
or separately.
In its simplest form, multixterm is run with no arguments and
commands are interactively entered in the first entry field.
Press return (or click the "new xterm" button) to create a new
xterm running that command.
Keystrokes in the "stdin window" are redirected to all xterms
started by multixterm. xterms may be driven separately simply
by focusing on them.
The stdin window must have the focus for keystrokes to be sent
to the xterms. When it has the focus, the color changes to
aquamarine. As characters are entered, the color changes to
green for a second. This provides feedback since characters
are not echoed in the stdin window.
Typing in the stdin window while holding down the alt or meta
keys sends an escape character before the typed characters.
This provides support for programs such as emacs.
--
Alexandre
More information about the gter
mailing list