duncs / clusterssh

Cluster SSH - Cluster Admin Via SSH

Home Page:https://github.com/duncs/clusterssh/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to use file to pass all nodes

sanjay92-gupta opened this issue · comments

Sorry, it is not issue but need to find out how to call filename which has all servers names listed

How do I use use filename which has all servers/nodes listed ?

cat hostfile_name
server1
server2

cssh -l myuser -c "hostfile_name"

It does not work
I have also tried

vi $HOME/.cshrc
and added
clusters=server1 server2

cssh -l myuser clusters

Thanks

never mind
I have to make clusters file inside .clusterssh and then create label/tag there and then
cssh mytag -l myuser
where mytag is defined in clusters files
mytag = server1 server2