This shows you the differences between two versions of the page.
— |
sdk:scripts:etherwake [2015/05/05 15:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SDK Script etherwake.are ====== | ||
+ | <code c etherwake.are> | ||
+ | /* DESC: This script can be used to wake up a sleeping host (WakeOnLan) | ||
+ | * Copyright (C) 2013 NetModule AG, Switzerland | ||
+ | */ | ||
+ | |||
+ | |||
+ | if (nb_etherwake("11:22:33:44:55:66", "LAN1") != 0) { | ||
+ | nb_syslog("Unable to send WakeOnLan packet"); | ||
+ | exit(1); | ||
+ | } | ||
+ | |||
+ | nb_syslog("WakeOnLan packet has been sent"); | ||
+ | exit(0); | ||
+ | |||
+ | </code> | ||