Difference between revisions of "Wake on LAN"

From LinuxMCE
Jump to: navigation, search
(Added -i option for use of eth1 interface)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
== Normal use ==
 +
From any orbiter, you can select the MD to control, click on Power and "Power on MD". This will send a wake up packet to the MD in question.
 +
 +
== Alternative method ==
 +
 +
You can also do this from the command line. LinuxMCE provides a script which allows you to use the device id of the MD.
 +
 +
    /usr/pluto/bin/WakeMD.sh --dev 30
 +
 +
Will wake the MD with device id 30. You can also use the --mac parameter if you prefer entering mac addresses to device ids.
 +
 +
 +
For debugging purposes, you can also run the etherwake command directly.
 +
 
From the command line type;
 
From the command line type;
  
Line 7: Line 21:
 
   man etherwake
 
   man etherwake
  
for more info. This will send a 'magic packet' to the device targeted and as long as that device has the bios & Network interface options to do WOL then your in business. Obviously you could build some scripts to make this work more slickly and also trigger those scripts based on other events or even time of day etc etc.
+
for more info. This will send a 'magic packet' to the device targeted and as long as that device has the bios & Network interface options to do WOL then you're in business. Obviously you could build some scripts to make this work more slickly and also trigger those scripts based on other events or even time of day etc etc.
  
 
Remember that etherwake will use eth0 by default which might not be your internal network. To use for example eth1 type
 
Remember that etherwake will use eth0 by default which might not be your internal network. To use for example eth1 type

Latest revision as of 08:02, 14 September 2010

Normal use

From any orbiter, you can select the MD to control, click on Power and "Power on MD". This will send a wake up packet to the MD in question.

Alternative method

You can also do this from the command line. LinuxMCE provides a script which allows you to use the device id of the MD.

   /usr/pluto/bin/WakeMD.sh --dev 30

Will wake the MD with device id 30. You can also use the --mac parameter if you prefer entering mac addresses to device ids.


For debugging purposes, you can also run the etherwake command directly.

From the command line type;

   etherwake <mac-address of device> or even moonID (for MD/PC's)

try;

  man etherwake

for more info. This will send a 'magic packet' to the device targeted and as long as that device has the bios & Network interface options to do WOL then you're in business. Obviously you could build some scripts to make this work more slickly and also trigger those scripts based on other events or even time of day etc etc.

Remember that etherwake will use eth0 by default which might not be your internal network. To use for example eth1 type

   etherwake -i eth1 <mac-address of device>

Taken from the forum [1].