#/bin/bash
# Run this script to poweroff all nodes (not including localhost or master)

command='poweroff'

/share/bin/pdsh_sshreachable_nodes > /dev/null
hosts=$(cat /share/tmp/ssh-nodes.dat)
pdsh -R ssh -w ^/share/tmp/ssh-nodes.dat $command


