x
Loading
 Loading
Hello, Guest | Login | Register

Remote Administration with DSH

Discover dsh, a utility to run arbitrary commands on any number of remote machines.

Previous “Tech Support” columns introduced both Perlbal and Pound, two packages to load balance traffic across multiple machines. Dividing load among several servers provides better performance and increased reliability. However, more machines translates to more tedium. Previously simple actions — such as restarting a service — becomes complex.

There are multiple solutions to managing a collection of machines. One common solution is to write a custom script for each task. A more innovative solution is dsh, the “distributed shell.” dsh is a wrapper implementation to execute remote shell commands on multiple machines. dsh abstracts the problem of multiple machines and offers a general solution.

dsh is provided under the terms of the GNU Public License and can be downloaded from the dsh home page at http://www.netfort.gr.jp/~dancer/software/dsh.html.en. Before you install, download, build, and install libdshconfig, which is also available from the dsh home page.

To build and install dsh, run the standard commands:

$ ./configure 
$ make
$ sudo make install

dsh has three system-wide configuration files, and you can extend those with personal settings.

*/usr/local/etc/machines.list and $HOME /.dsh/machines.list enumerate the machines to operate upon if the –a (“all machines”) option is specified.

*/usr/local/etc/group/ groupname and $HOME /.dsh/group/ groupname define the group named groupname. To operate on a group of machines, specify –g groupname.

*/usr/local/etc/dsh.conf and $HOME/.dsh/dsh.conf set parameters for dsh.

man dsh.conf describes all of the available configuration…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. KDE 4.4: Does It Work Yet?
  2. Writing Custom Nagios Plugins with Python
  3. Power Up Linux GUI Apps
  4. Tweeting from the Command Line with Twyt
  5. When Memory Serves You: Using ramfs and tmpfs
Follow Linux Magazine
Rackspace