Ted Rodriguez-Bell wrote:
Ted
I think you're doing something odd; I hit "reply" and Seamonkey wanted
to send the email to you. Pls check your email settings.


If xargs (especially -P; I didn't know that!) doesn't work, life gets
a lot more complicated.

I found a discussion on Slashdot about this from 2003; it mentions a
Sourceforge project to make a dsh that's vanished, and something
called distribulator that looks promising.  See:
http://ask.slashdot.org/article.pl?sid=03/06/17/2323248, and
especially http://ask.slashdot.org/comments.pl?sid=67987&cid=6233171
Distribulator is at http://sourceforge.net/projects/distribulator/

This is a hard problem in general, and I don't know of any
other public-domain tools that really address it .  The problems are:
 * If your SSH keys aren't completely up-to-date you get password
   prompts and things stick.

You do need a good, safe way of maintaining those.


 * If you have multiple environments (even SuSE 8 and 9) the prompts
   are different.

That depends on the application. For my volume and my enviroment it's
hardly important, but if I had 1500 machines to look after, I'd apply
updates a little differently.


 * If a server is down the script hangs.

If you're running in parallel (you are, aren't you? running something
serially on 1500 hosts could take some time), that's less important.

 * If you run in parallel the output can get intermixed.

With the method I posted, that doesn't happen, but then it doesn't scale
to 1500 machines. Doing anything interactively to 1500 penguins does not
appeal to me, so I'd change  my bin/update from this:
#!/bin/bash
apt-get update && apt-get -yud upgrade
echo DEBIAN_FRONTEND=noninteractive apt-get -yu upgrade

/bin/bash

06:41 [EMAIL PROTECTED] ~]$

to something like this:
#!/bin/bash
(
cat <<Z
To: [EMAIL PROTECTED]
From: System Updater <[EMAIL PROTECTED](hostname -f)
Subject: Software update on $(hostname -f)

Z
DEBIAN_FRONTEND=noninteractive apt-get -yu upgrade

) 2>&1 | /usr/sbin/sendmail -t

Note that Debian's a bad example here, DEBIAN_FRONTEND=noninteractive
does not make the update non-interactive! but it illustrates the point.





--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]

Please do not reply off-list

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to