Toolserver:Admin:dsh

dsh is a tool to run a command on many servers. It can run on all servers (-a), or on a pre-defined group of servers specified in a node group (-g group).

% dsh -ca uptime hemlock: 15:27pm  up 51 days 12:25,  2 users,  load average: 0.08, 0.11, 0.11 daphne: 15:27pm  up 130 days 17:16,  0 users,  load average: 0.34, 0.31, 0.33 damiana: 15:27pm  up 20 days  4:16,  0 users,  load average: 0.15, 0.13, 0.13 hyacinth: 15:27pm  up 17 days 18:14,  3 users,  load average: 0.13, 0.13, 0.13 nightshade: 15:27:21 up 8 days, 14:50, 13 users,  load average: 4.50, 5.16, 4.89 turnera: 15:27pm  up 20 days 22:51,  1 user,  load average: 0.27, 0.26, 0.25 rosemary: 15:27pm  up 41 days  3:31,  1 user,  load average: 0.09, 0.09, 0.14 thyme: 15:27pm  up 43 days  7:23,  1 user,  load average: 2.59, 2.55, 3.53 wolfsbane: 15:27pm  up 52 days  2:50,  0 users,  load average: 1.16, 0.94, 0.94 zedler: 15:27pm  up 82 days 18:37,  0 users,  load average: 0.45, 0.96, 1.60 willow: 15:27pm  up 49 days  8:51,  13 users,  load average: 0.48, 0.63, 0.69 yarrow: 15:27pm  up 49 days 11:25,  0 users,  load average: 2.12, 1.71, 1.45 amaranth:  3:27pm  up 45 day(s), 21:23,  2 users,  load average: 1.14, 0.90, 0.76

The list of node groups is in /etc/opt/ts/dsh on all servers. To edit a node group, edit the corresponding file in /global/misc/puppet/etc/modules/base/files/dsh on the HA cluster, and Puppet will deploy it automatically. To add a new node group, also edit /global/misc/puppet/etc/modules/base/manifests/files.pp and add a new file entry for it.

Category:Admin:Software