duncs / clusterssh

Cluster SSH - Cluster Admin Via SSH
https://github.com/duncs/clusterssh/wiki
897 stars 79 forks source link

How to define name ranges in the "clusters" configuration file. #53

Closed lserena1 closed 8 years ago

lserena1 commented 8 years ago

Hi Duncan,

If I type this from the command line: cssh devstack0{1..5} & it works as expected, i.e. it opens 5 xterm sessions to devstack01, 02, 03, 04 and 05.

But if I put something simlar in ~/.clusterssh/clusters

devstack devstack0{1..5}

When I run cssh devstack from the prompt, all I get is: Opening to: devstack0{1..5} Unable to parse hostname from "devstack0{1..5}" $

What is the correct way to define a name range in the clusters file?

Thanks in advance

Loris

duncs commented 8 years ago

I have got this working with commas, but not in ranges

e.g. this works okay devstack devstack{1,2,3,4,5}

but this doesnt yet devstack devstack0{1..5}

I am considering how best to do this.

The changes I am making are not yet in the repo.

Duncs

lserena1 commented 8 years ago

Thank you for looking into this

duncs commented 8 years ago

Code changes have been pushed to the repo. Let me know if you find any issues

Duncs