View unanswered posts | View active topics It is currently Sun May 19, 2013 7:35 am



This topic is locked, you cannot edit posts or make further replies.  [ 31 posts ]  Go to page Previous  1, 2, 3, 4  Next
 Execute WOL to start external NAS 
Author Message

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: Execute WOL to start external NAS
If you can wake up your NAS manually, but doesn't work via rcS, then something goes wrong. You can check spelling, permissions and path - sorry, I can't help you much more. It's really difficult to say what's wrong, because we don't see your files.

Normally if it's in /usr/local/etc/rcS, it has to work after reboot.


Sun Dec 26, 2010 9:03 pm
Profile

Joined: Mon Dec 07, 2009 10:20 am
Posts: 23
Post Re: Execute WOL to start external NAS
Yes, I was afraid of that. Well, will keep on checking. rcS is in correct spot though.


Mon Dec 27, 2010 2:32 pm
Profile

Joined: Wed Sep 01, 2010 7:25 pm
Posts: 17
Post Re: Execute WOL to start external NAS
@Christian_Ku

Perhaps it is possible to capture the output of the command.
This could tell you what's wrong.

Try adding ' > /usr/local/etc/output.txt 2>&1', to the line containing the ether-wake command.
This will store the output(and errors) of the command into output.txt

After the POHD is started, you can look in the file. Perhaps there's some kind of error message in the file, that explains why it doesn't work

Hope it helps

kaay


Mon Dec 27, 2010 6:13 pm
Profile

Joined: Mon Dec 07, 2009 10:20 am
Posts: 23
Post Re: Execute WOL to start external NAS
Well, it appears to be much simpeler. Yesterday for some strange reason the POHD stalled and I had to get the power off the machine to be able to start it again. When I did restart it this way it did start the NAS via WOL. Have not tested it thoroughly yet to see if it will start the server also from suspended mode. Will keep you posted, otherwise I will use the above mentioned method by Kaay. Thanks!


Wed Jan 05, 2011 10:55 am
Profile

Joined: Mon Dec 07, 2009 10:20 am
Posts: 23
Post Re: Execute WOL to start external NAS
Allright, now I'm at a loss, it works when I do a complete shutdown (with power off) and start-up. It does NOT work when I just put it on stand-by and then turn it on. As if it already has ran the rcS file and skips that.

Will try the option mentioned by Kaay.


Thu Jan 06, 2011 9:59 am
Profile

Joined: Thu Nov 11, 2010 9:07 pm
Posts: 5
Post Re: Execute WOL to start external NAS
Hello everyone,

I have 2 PlayonHD Mini. One is connected to wired LAN and the other via WiFi. Now I have the problem that the WOL function to run at the Wired Box perfect. In the pits, unfortunately, not WLAN.

Chance does anyone have a tip for me how I can get with wifi go?

Is it somehow possible to create a file that can be called with the PlayonHD waking up the server with it?

Or does the command for the Magic packet for WLAN in another script to be integrated?

Greetings
Pilepalle


Sat Jan 22, 2011 6:31 pm
Profile

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: Execute WOL to start external NAS
Try to put some delay like sleep 30 just before ether_wake.


Sat Jan 22, 2011 7:33 pm
Profile

Joined: Wed Sep 01, 2010 7:25 pm
Posts: 17
Post Re: Execute WOL to start external NAS
It could be that the WLAN is not initialized when the WOL signal is being sent.

The sleep (suggested in previous post) should fix that problem

Hope this helps


Sat Jan 22, 2011 8:58 pm
Profile

Joined: Thu Nov 11, 2010 9:07 pm
Posts: 5
Post Re: Execute WOL to start external NAS
Hi,

I have entered the sleep 30th
The NAS drive but not online.

Pilepalle


Sat Jan 22, 2011 9:04 pm
Profile

Joined: Wed Sep 01, 2010 7:25 pm
Posts: 17
Post Re: Execute WOL to start external NAS
Now the new GUI 2.0 has arrived, I have to redo the work. Because I encountered some problems, here is what i did

- Login to the POHD using putyy(telnet). Make sure you connect to ssl not ssh
- Make sure you log in as user root
- Goto /usr/local/etc (thats were I had some free space) with the command:
Quote:
cd /usr/local/etc

- Download busybox 2 (note the different location)using the command: (remember to remove the _ between w and get)
- Make sure it's executable with the command:
Quote:
chmod u+x busybox2

- Add the ether-wake command to, I think some kind of startup script, /usr/local/etc/rcS, using the following command:
Quote:
echo "/usr/local/etc/busybox2 ether-wake <MAC ADDRESS OF SERVER TO BE STARTED>" >> /usr/local/etc/rcS

- Check if the command is stored in the rcS file, using the command cat /usr/local/etc/rcS. You should something like this:
Quote:
/usr/local/etc/busybox2 ether-wake 0:01:02:03:04:05

- Shutdown POHD
- Shutdown your server, WOL should be active
- Start POHD, and the server should be activated with the magic packet sent. it's magic :D

Hope this helps others with this problem


Thu Mar 10, 2011 5:23 pm
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 31 posts ]  Go to page Previous  1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.