#/bin/bash

# Run this script in master as root to reboot all nodes (exlcuding master and localhost)

command='reboot now'

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


