Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jnikolak/c5987c7bf2a1c6fc0718189c70c60eee to your computer and use it in GitHub Desktop.
Save jnikolak/c5987c7bf2a1c6fc0718189c70c60eee to your computer and use it in GitHub Desktop.
hammer host list --search "yourdomain.com" --per-page 100|grep yourEnvName|awk '{print $1}'|while read i; do hammer host update --id $i --domain-id 1 --subnet-id 1 --medium-id 7 --operatingsystem-id 2 --partition-table-id 13; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment