Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CLI control over multiple remote machines
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
newfangled
n00b
n00b


Joined: 14 Jul 2003
Posts: 20
Location: London, England

PostPosted: Thu Dec 09, 2004 2:50 pm    Post subject: CLI control over multiple remote machines Reply with quote

Hi I'm looking for advice.. I need to manage 30+ gentoo clients remotely over an ADSL connection. Most of my admin tasks are scripted with cron but I occasionally need to run the same command on every single host. When I'm on the network I usually fire up konsole with 30+ sessions in the window and send the input from one session to all the hosts.

That works fine over the LAN but I'm looking for a more elegant and less bandwidth intensive alternative.

Many thanks
Back to top
View user's profile Send private message
fyerk
Apprentice
Apprentice


Joined: 17 Sep 2002
Posts: 212
Location: Atlanta, GA

PostPosted: Fri Dec 10, 2004 1:08 pm    Post subject: Reply with quote

Well you could script part of it:

Code:

% for myhost in host1 host2 host3; do ssh $myhost command; done


This assumes you are using SSH keys and some sort of key management (e.g. keychain).
_________________
-David
Back to top
View user's profile Send private message
gullyg
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2004
Posts: 105
Location: Edinburgh

PostPosted: Fri Dec 10, 2004 2:40 pm    Post subject: Reply with quote

This might be what your looking for.
_________________
Not Y3K compliant

CPCFF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum