Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show example with multiple hosts on main page #164

Open
ferki opened this issue Oct 18, 2023 · 0 comments
Open

Show example with multiple hosts on main page #164

ferki opened this issue Oct 18, 2023 · 0 comments

Comments

@ferki
Copy link
Member

ferki commented Oct 18, 2023

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 RexOps/Rex#648 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant