2

I have been searching for a way to Wake-on-LAN (WoL) multiple clients in a computer lab or for the purpose of disk imaging. I am using Lubuntu 12.04 as the server. What is the simplest and/or best command-line tool(s) for this job?

user300458
  • 2,108
  • 2
  • 17
  • 20

1 Answers1

3

I have been doing quite a bit of research and trial/error work on this subject and I'd like to share my findings. These three pages have been very helpful: Wake-on-LAN and Beginners/BashScripting and List all MAC addresses in my local network.

  1. I used arp to gather the MAC addresses I needed as they were powered on and connected to my isolated LAN.
  2. I tested etherwake and wakeonlan and examined their options; wakeonlan allowed me to reference a file to get multiple MAC addresses to wake but would not wake my HP6455b laptops, while etherwake would wake my laptops but not allow me to wake more than one at a time.
  3. I created a simple bash script to wake all of the computers I needed with a single command.
#!/bin/bash
etherwake 00:00:00:00:00:00
etherwake 00:00:00:00:00:00
..

I saved this as a .sh file, gave it permission to run with chmod a+x and then ran it as root: presto!