wakeup-wall (somehow the wiki doesn't show the backticks for the beginning of ls to after the end of the sed part)
#!/bin/bash
for j in 71 72 73 74 75 76;do
for i in 18 19 54 68 86 90;do
wakeonlan -i 10.80.1.$j `ls mac-addresses/*$i | sed 's/mac-addresses\///'`
sleep 0.5
done
done
shutdown-wall
#!/bin/bash
for i in 01 02 03 04 05 06;do
ssh wall$i.lair.lan "shutdown -h now"
done
reboot-wall
#!/bin/bash
for i in 01 02 03 04 05 06;do
ssh wall$i.lair.lan "reboot"
sleep 120
done
To be expanded on later.