Use gsh to run the same command on multiple servers

Posted by kprojects on Mar 28, 2016 11:59 AM
By LinuxOS.pro
Mail this story
Web version

At some point you will find it very handy to be able to run the same command on multiple servers. Sure, you could just put a list of IPs in a file and run something against it using a for loop, but gsh is going to make your life much easier.

First off, i’ve used the old ‘list of ips’ way in the past – especially if I have an easy list of servers that are all the same and know that I want to group them all together. I’ve even written about it. gsh, on the other hand, will allow you to run the same command on various servers sorted by category.

Full Story

Printed at http://lxer.com/module/newswire/view/227547/index.html