Wake on lan

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "The wake_on_lan device controller sends a WOL package to a computer on the local LAN when the device receives an "on" even. To do so, it needs the MAC adress for the machine. ...")
 
(Added device state polling info)
Line 5: Line 5:
 
  [wake_on_lan]
 
  [wake_on_lan]
 
  debug=false
 
  debug=false
 +
polltime=300
 
   
 
   
 
  [Computers]
 
  [Computers]
 
         [[DCErouter]]
 
         [[DCErouter]]
 
         name=DCErouter
 
         name=DCErouter
         mac=01:14:DD:D1:B9:5D  
+
         mac=01:14:DD:D1:B9:5D
 +
        host=dcerouter
 
   
 
   
 
         [[Test]]
 
         [[Test]]
 
         name=test
 
         name=test
 
         mac=00:01:02:03:04:FF
 
         mac=00:01:02:03:04:FF
 +
        host=192.168.1.1
  
 
N.B. Some wiki formatting errors here - the DCErouter and test parts should be embaced with double square brackets (i.e. two [ before and two ] after)
 
N.B. Some wiki formatting errors here - the DCErouter and test parts should be embaced with double square brackets (i.e. two [ before and two ] after)
 +
 +
If a host address (name or IP#) is added, the state of the computer will be monitored and reported as a normal device state (on/off). The polltime variable in the config file controls how often a device state check will be done.

Revision as of 13:20, 19 January 2014

The wake_on_lan device controller sends a WOL package to a computer on the local LAN when the device receives an "on" even. To do so, it needs the MAC adress for the machine.

Config example

/etc/opt/agocontrol/conf.d/wake_on_lan.conf

[wake_on_lan]
debug=false
polltime=300

[Computers]
        DCErouter
        name=DCErouter
        mac=01:14:DD:D1:B9:5D
        host=dcerouter

        Test
        name=test
        mac=00:01:02:03:04:FF
        host=192.168.1.1

N.B. Some wiki formatting errors here - the DCErouter and test parts should be embaced with double square brackets (i.e. two [ before and two ] after)

If a host address (name or IP#) is added, the state of the computer will be monitored and reported as a normal device state (on/off). The polltime variable in the config file controls how often a device state check will be done.

Personal tools