Eisi2005 Posted April 29, 2010 Share Posted April 29, 2010 Hi, first post, first question First let me say welcome, very nice forum, very nice software. Is there any tool for unraid to wake up an other pc in the network. My unraid server is online 24/7 and i will wake up my pc with unraid like etherwake or something. Is there any chance ? Thanks for answer. Greets Eisi Link to comment
starcat Posted April 29, 2010 Share Posted April 29, 2010 Here is a perl script you may use to wake on lan any computer on the same subnet by sending a Magig Packet. You should install perl packages (best using unMenu 1.3) and configure the target computer network interface (driver) to respond to such a Magic Packet. wakeonlan.cfg Link to comment
Eisi2005 Posted April 30, 2010 Author Share Posted April 30, 2010 @starcat thx for your answer. But how could i use this cfg from the console. i have only a telnet access from outside of my home network. Thanks again. Greets Eisi Link to comment
WeeboTech Posted April 30, 2010 Share Posted April 30, 2010 Here is the ether-wake program compiled. Install it on your flash. I use /boot/custom/bin or /boot/bin ether-wake.zip Link to comment
starcat Posted April 30, 2010 Share Posted April 30, 2010 @starcat thx for your answer. But how could i use this cfg from the console. i have only a telnet access from outside of my home network. This is not a cfg, it is a perl script. I had to append .cfg because I couln't attach it otherwise. Use the file command to check the filetype. Anyway, you just download and copy it somewhere, set execute permission and call from the the cmdline. If you call it without arguments, you will get a whole list of arguments and how to use it, it is quote powerful and can do WOL different ways. Link to comment
Eisi2005 Posted May 4, 2010 Author Share Posted May 4, 2010 Hi, sorry for late answer. @WeeboTech that was what i´m searching for, many thx @starcat thx for your info but i´m a linux and perl noob and ether-wake is easy Greets Eisi Link to comment
EdgarWallace Posted May 9, 2010 Share Posted May 9, 2010 Hi, that is what I was looking for but I don´t understand the usage of the files. If I´m sending the array to S3 sleep via the unMENU button I can´t access the it through my SSH console. I also can´t access it via the web admin interface. I thought to include something into my user scripts of unMENU to ease the usage: #define USER_SCRIPT_LABEL WOL #define USER_SCRIPT_DESCR Wake up Array after S3 Sleep #define USER_SCRIPT_TEST [ -x /boot/custom/ether-wake e0:cb:4e:42:22:13 ] && echo "WOL" echo "<pre>" /boot/custom/ether-wake e0:cb:4e:42:22:13 But this is bringing an error message - directly on the button of unMENU: sh: line 0: [: /boot/custom/ether-wake: binary operator expected What do I understand wrong? Thank you Link to comment
Joe L. Posted May 9, 2010 Share Posted May 9, 2010 Hi, that is what I was looking for but I don´t understand the usage of the files. If I´m sending the array to S3 sleep via the unMENU button I can´t access the it through my SSH console. I also can´t access it via the web admin interface. I thought to include something into my user scripts of unMENU to ease the usage: #define USER_SCRIPT_LABEL WOL #define USER_SCRIPT_DESCR Wake up Array after S3 Sleep #define USER_SCRIPT_TEST [ -x /boot/custom/ether-wake e0:cb:4e:42:22:13 ] && echo "WOL" echo "<pre>" /boot/custom/ether-wake e0:cb:4e:42:22:13 But this is bringing an error message - directly on the button of unMENU: sh: line 0: [: /boot/custom/ether-wake: binary operator expected What do I understand wrong? Thank you delete the MAC address from the "test" command. You are only looking for the existence of the executable file in /boot/custom/ether-wake (assuming that is where it is located) It should look like this (with the text in RED removed): #define USER_SCRIPT_LABEL WOL #define USER_SCRIPT_DESCR Wake up Array after S3 Sleep #define USER_SCRIPT_TEST [ -x /boot/custom/ether-wake e0:cb:4e:42:22:13 ] && echo "WOL" echo "<pre>" /boot/custom/ether-wake e0:cb:4e:42:22:13 Link to comment
EdgarWallace Posted May 9, 2010 Share Posted May 9, 2010 Thanks Joe, that did the trick. What it doesn´t is to send the WOL signal. If the array was sent to sleep you can´t reach it via unMENU - correct? So it must something sent from any of the Mac's within the network I guess? I found some Windows programs but not a single one for Mac OS X. Thank you very much. Link to comment
Joe L. Posted May 9, 2010 Share Posted May 9, 2010 Thanks Joe, that did the trick. What it doesn´t is to send the WOL signal. If the array was sent to sleep you can´t reach it via unMENU - correct? So it must something sent from any of the Mac's within the network I guess? I found some Windows programs but not a single one for Mac OS X. Thank you very much. Right, it is useless if your array is sleeping. Perhaps the function you are looking for is built into the MAC http://en.wikipedia.org/wiki/Apple_Remote_Desktop It says it can send WOL packets to wake remote machines. Mac hardware (OS X) Modern Mac hardware features integrated Wake-on-LAN functionality, controlled via the OS X System Preferences Energy Saver panel, in the Options tab. Marking the Wake for Ethernet network administrator access checkbox enables Wake-on-LAN. Apple's Apple Remote Desktop client management system can be used to send Wake-on-LAN packets, but there are also freeware and shareware Mac OS X applications available. Link to comment
Joe L. Posted May 9, 2010 Share Posted May 9, 2010 Perhaps this: http://www.apple.com/downloads/macosx/networking_security/wakeonlan.html will work for you? Link to comment
EdgarWallace Posted May 9, 2010 Share Posted May 9, 2010 Spot on Joe! Yes that is what I found in parallel but you were faster than me :-) Thank you very much. It´s working well, the array is starting except AFP. I need to check if this was a one time error. Thanks again. Cheers Oliver [EDIT: It´s working well. Re-checked and AFP is starting too] Link to comment
Joe L. Posted May 9, 2010 Share Posted May 9, 2010 Spot on Joe! Yes that is what I found in parallel but you were faster than me :-) Thank you very much. It´s working well, the array is starting except AFP. I need to check if this was a one time error. Thanks again. Cheers Oliver [EDIT: It´s working well. Re-checked and AFP is starting too] Which method did you use? The built-in? or the freeware version I linked to? Link to comment
EdgarWallace Posted May 9, 2010 Share Posted May 9, 2010 I used the ReadPixel Freeware under this link: http://www.readpixel.com/wakeonlan/index.html - which is the same app as the version you linked to. Link to comment
starcat Posted May 16, 2010 Share Posted May 16, 2010 From Mac OS X you may use the attached script to wake any computer on the same subnet. This is not a config file, rename to wakeonlan, set execute permission and run. Running it without arguments will print cmd line options. Edit: This can be run on unRAID also as it is a simple perl script. wakeonlan.cfg Link to comment
Joe L. Posted May 17, 2010 Share Posted May 17, 2010 From Mac OS X you may use the attached script to wake any computer on the same subnet. This is not a config file, rename to wakeonlan, set execute permission and run. Running it without arguments will print cmd line options. Edit: This can be run on unRAID also as it is a simple perl script. Joe may even integrate it into unMenu 1.3 in order to wakeup unraid if it is sleeping but gets accessed. The program you linked generates WOL packets. It could be used from a different PC with a perl interperter to send a WOL packet to an unRAID server with WOL enabled, but it could not be used from within the unRAID server to wake itself. In the same way, it could be used to send a WOL packet from the unRAID server to any other PC on the same LAN. Basically, no PC can send anything to itself if it is sleeping. It is a VERY memory intensive program, unless you happen to already have perl installed and are using it for something else, there are far better solutions to send a WOL packet from the unRAID server. Joe L. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.