Skip to content

Show example with multiple hosts on main page #164

Description

@ferki

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions