Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save double-z/9798758 to your computer and use it in GitHub Desktop.

Select an option

Save double-z/9798758 to your computer and use it in GitHub Desktop.
knife ssh 'name:*' 'uptime' -G user@gateway.example.com -a private_ipaddress -x user
# to run chef-client on all servers:
knife ssh 'name:*' 'sudo chef-client' -G user@gateway.example.com -a private_ipaddress -x user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment