/var/log/seiji

01 Aug 2012

issue commands using parallel distributed shell (pdsh)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Install
$ brew install pdsh
// Setting
$ mkdir -p ~/.dsh/group
$ cat ~/.dsh/group/vps
linode
linode2
// Issue command
$ pdsh -g vps df -h | dshbak -c
----------------
linode
----------------
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda              20G  9.8G  9.6G  51% /
tmpfs                 243M  124K  243M   1% /dev/shm
----------------
linode2
----------------
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda              20G  5.1G   15G  27% /
tmpfs                 243M  124K  243M   1% /dev/shm

Comments

comments powered by Disqus