Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- nodes=("controller01" "compute01" "compute02" "storage01" "storage02" "storage03")
- for n in "${nodes[@]}"
- do
- host $n | grep -v alias | awk -v node=$n '{ print $4, $1, node }'
- done
Add Comment
Please, Sign In to add comment