Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Lo stesso comando su n computer
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Wed Jan 04, 2006 10:14 am    Post subject: [TIP] Lo stesso comando su n computer Reply with quote

Avendo n macchine posso dare lo stesso comando su tutte allo stesso momento?
Per esempio, voglio fare un emerge --sync ed un emerge -u system su tutte
le macchine che ho a disposizione.

La risposta è:
Code:

# emerge  pconsole


Questo software permette di replicare i comandi impartiti da console a tutte le macchine
che si vuole attraverso una connessione sicura che sfrutta ssh.
Pconsole infatti, lanciato da riga di comando con

Code:

# pconsole.sh [indirizzo_ip_1] [indirizzo_IP_2] [indirizzo_IP_n]


apre nell'interfaccia grafica n sessioni ssh sulle macchine specificate dall'IP ed invia loro lo stesso comando che viene digitato una sola volta nella finestra del programm stesso.

Chiaramente la cosa migliore è creare le chiavi pubbliche di ssh da diramare alle macchine che si vogliono utilizzare attraverso pconsole per evitare la richiesta della password per ogni macchina.

Buon emerge a tutti
morellik
Back to top
View user's profile Send private message
neryo
Veteran
Veteran


Joined: 09 Oct 2004
Posts: 1292
Location: Ferrara, Italy, Europe

PostPosted: Wed Jan 04, 2006 10:21 am    Post subject: Re: [TIP] Lo stesso comando su n computer Reply with quote

morellik wrote:

Per esempio, voglio fare un emerge --sync ed un emerge -u system su tutte
le macchine che ho a disposizione.


bello.. lo conoscevo anch'io questo script.. molto utile..
l'esempio che hai proposto pero' non mi piace.. :P :wink:
_________________
cache: a safe place for hiding or storing things..

D-link DWL-G650 AirPlus
Apache Php Mysql
Back to top
View user's profile Send private message
Dr.Dran
l33t
l33t


Joined: 08 Oct 2004
Posts: 766
Location: Imola - Italy

PostPosted: Wed Jan 04, 2006 11:15 pm    Post subject: Reply with quote

Quoto, diciamo che come esempio non è il massimo... comunque la parallel console o anche la dshell sono pacchetti utilissimi se uno ha a che fare con reti distribuite di pc o server a cui vuole inviare comandi unici :wink:
_________________
:: [Dr.Dran] Details ::
- Linux User # 286282
- IT FreeLance Consultant
- President of ImoLUG [Imola & Faenza Linux User Group]
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Wed Jan 04, 2006 11:24 pm    Post subject: Reply with quote

esiste anche autossh.
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
Dr.Dran
l33t
l33t


Joined: 08 Oct 2004
Posts: 766
Location: Imola - Italy

PostPosted: Thu Jan 05, 2006 9:01 am    Post subject: Reply with quote

Vero c'è anche autossh... dipende sempre dove e che cosa dobbiamo fare, per esempio su un cluster (openmosix o beowulf) prediligo dshell ma è una questione di abitudine :P :D
_________________
:: [Dr.Dran] Details ::
- Linux User # 286282
- IT FreeLance Consultant
- President of ImoLUG [Imola & Faenza Linux User Group]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) 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