how to use file to pass all nodes
sanjay92-gupta opened this issue · comments
sanjay92-gupta commented
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
sanjay92-gupta commented
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