System/Linux

PDSH Settings

JJuno 2018. 3. 12.
  • Environment: Head, N01, N02

pdsh install

]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
]# rpm -Uvh epel-release-6-8.noarch.rpm
]# yum install pdsh pdsh-mod-dshgroup

 

pdsh use

]# pdsh -w n[01-02] uptime
]# pdsh -w n[01-02] wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
]# pdsh -w n[01-02] rpm -Uvh epel-release-6-8.noarch.rpm
]# pdsh -w n[01-02] yum install pdsh pdsh-mod-dshgroup -y
]# mkdir -p /etc/dsh/group
]# vi /etc/dsh/group/node
n01
n02
]# pdsh -g node uptime

 

728x90

댓글

💲 추천 글