LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Update ALL LAN PCs (https://www.linuxquestions.org/questions/linux-networking-3/update-all-lan-pcs-702154/)

mashcaster 02-04-2009 02:46 AM

Update ALL LAN PCs
 
Is it possible to update all LAN PCs without going to each and every PC individually? For example, I may want to apply a security update to all PCs or I may want to add or remove a package from all PCs. Is this possible?

tredegar 02-04-2009 04:00 AM

Yes:
ssh to the PC
login
Become root
Apply the update
logout

mashcaster 02-04-2009 04:07 AM

tredegar: That is going to each and every PC individually via ssh which I do not want to do. I want to update all PCs at once. It will take a long time to update 100+ PCs by ssh'ing into each and every PC individually.

For example, a mass update

theYinYeti 02-04-2009 04:43 AM

I don't know what distribution you use, but to my knowledge, Mandriva's “drakxtools” contain a GUI administration tool to do just that.

Yves.

mashcaster 02-04-2009 06:05 AM

Quote:

Originally Posted by theYinYeti (Post 3431627)
I don't know what distribution you use, but to my knowledge, Mandriva's “drakxtools” contain a GUI administration tool to do just that.

Yves.

I use Debian stable.

skuzye 02-04-2009 06:14 AM

If you know bash scripting you can make a script to log in (using ssh), execute a command to update via apt-get, logoff and go to the next computer. Don't forget to use nohup when running apt-get.

For the script itself you can make a "for" loop with ip address. It would be nice if you test connection before trying to directly connect via ssh and to add a sleep time between connections.

For a resource with scripting you can always go to this howto.

Skuzye

mashcaster 02-04-2009 06:29 AM

Quote:

Originally Posted by skuzye (Post 3431721)
If you know bash scripting you can make a script to log in (using ssh), execute a command to update via apt-get, logoff and go to the next computer. Don't forget to use nohup when running apt-get.

For the script itself you can make a "for" loop with ip address. It would be nice if you test connection before trying to directly connect via ssh and to add a sleep time between connections.

For a resource with scripting you can always go to this howto.

Skuzye

Looks like this is the only way.

jschiwal 02-04-2009 06:59 AM

Cfengine is sometimes used to centrally manage a number of hosts.

If you read the Filesystem Hierarchy Standard, there are many directories which can be mounted static/shared. If all of the hosts use the same directory for /lib/,/bin/,/usr/bin/,/usr/sbin/, etcetera you can update the shared directories on the server.

If you use slim clients, then there is only one installation which can be updated.

Another idea could be to allow autoupdates by all of the hosts, but use your own mirror. That way you could control which updates are performed.

skuzye 02-04-2009 07:02 AM

I personally liked this one suggested by jschiwal:

Quote:

Another idea could be to allow autoupdates by all of the hosts, but use your own mirror. That way you could control which updates are performed.
That would be by far the easier.

mashcaster 02-04-2009 07:12 AM

I like the mirror idea, sounds the easiest. However, if you look at my original question, it also asks about installing or removing software from all networked computers. is this also possible from a mirror to automatically add or remove software from all computers?

skuzye 02-04-2009 07:16 AM

The good thing about the script and ssh is that once you've made the script you can run anything in each computer with just some edition to the script.

If you're in a hurry to update you can try using the mirror while you make the script :D

Skuzye

win32sux 02-04-2009 12:19 PM

I've heard great things about using apt-proxy for making your own partial mirror. But getting back to the centralized update management issue: Have you searched the Debian repositories for a solution? Honestly, I'd be surprised if they didn't have a package for this sort of thing.

farslayer 02-04-2009 04:00 PM

puppet could be your answer
http://reductivelabs.com/

http://reductivelabs.com/trac/puppet/wiki/PuppetDebian

mashcaster 02-04-2009 05:44 PM

what is the difference between apt-catcher, apt-mirror, and apt-proxy?


All times are GMT -5. The time now is 04:34 PM.