Open ferki opened 1 year ago
On the rexify.org main page is an example with the quoted hostname however it doesn't contain spaces so it's easy to miss.
The rex command help mentions -H takes space delimited hostnames but there isn't an example so it's easy to miss the need for quotes.
This command line example will execute uptime on all the given hosts (frontend01, frontend02, ...): $ rex -H "frontend[01..05]" -e "say run 'uptime'"
I would suggest adding something like this as a follow up to the existing example.
This command line example will execute uptime on all the given hosts (foo, bar, baz): $ rex -H "foo bar baz" -e "say run 'uptime'"
Originally posted by @mrmuskrat in https://github.com/RexOps/Rex/issues/648#issuecomment-1769054542
On the rexify.org main page is an example with the quoted hostname however it doesn't contain spaces so it's easy to miss.
The rex command help mentions -H takes space delimited hostnames but there isn't an example so it's easy to miss the need for quotes.
I would suggest adding something like this as a follow up to the existing example.
This command line example will execute uptime on all the given hosts (foo, bar, baz): $ rex -H "foo bar baz" -e "say run 'uptime'"
Originally posted by @mrmuskrat in https://github.com/RexOps/Rex/issues/648#issuecomment-1769054542