View unanswered posts | View active topics It is currently Sun May 26, 2013 1:49 am



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

Joined: Wed Sep 01, 2010 7:25 pm
Posts: 17
Post Execute WOL to start external NAS
I'm using the POHD in combination with a external NAS. I don't use a harddisk in the media player.

I would like to be able to sent (not receive) a magic packet to the NAS server.

I don't know if all required information is available within the POHD when the magic packet should be sent to the NAS. I think the mac adress of the server that has to be activated is required. Perhaps saving the MAC address of the NAS server when it is active, could enable this feature. I've have a squeezebox, and this little gem wakes my NAS -> out of the box.

I think the magic packet can be sent always. When the server you're waking up is already active, the packet will be ignored. Otherwise it will activate the required (NAS) server.

Thanks in advance,
Erik

PS: If this is already possible, I would like to know HOW.


Wed Sep 01, 2010 7:34 pm
Profile

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: Execute WOL to start external NAS
You can contact user Marty068 or check his posts, he was looking for the same.


Thu Sep 02, 2010 9:01 am
Profile

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

have looked at his posts. Seems rather difficult.


Thu Sep 02, 2010 6:41 pm
Profile

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: Execute WOL to start external NAS
If you know how to use Putty, everything you have to do is:
1) Download modified Busybox with ether-wake
2) Add ether-wake to be run on start-up

Something like that (free space on flash needed):
Code:
mount -o remount,rw / && cd /bin && w_get http://stg.unixstorm.org/playon/tools/busybox2 && echo "busybox2 ether-wake MAC-OF-NAS" >> /usr/local/etc/rcS && mount -o remount,ro /


(remove "_" between "w" and "get")


Options of ether-wake:
Code:
BusyBox v1.17.1 (2010-08-22 13:23:14 CEST) multi-call binary.

Usage: ether-wake [-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC

Send a magic packet to wake up sleeping machines.
MAC must be a station address (00:11:22:33:44:55) or
a hostname with a known 'ethers' entry.

Options:
        -b              Send wake-up packet to the broadcast address
        -i iface        Interface to use (default eth0)
        -p pass         Append four or six byte password PW to the packet


Thu Sep 02, 2010 9:32 pm
Profile

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

I don't have a harddisk available in my POHD (and don't intend to install it).
Is your suggestion possible ??

I assume, that busybox requires more space then available in POHD (without hd)
Putty is no problem. Use it all the time ;)

Erik


Fri Sep 03, 2010 5:25 pm
Profile

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: Execute WOL to start external NAS
No, you don't need hard disk. Busybox will be downloaded to flash and there you need some space (you might want to replace font - example also available on this forum).


Fri Sep 03, 2010 5:43 pm
Profile

Joined: Wed Sep 01, 2010 7:25 pm
Posts: 17
Post Re: Execute WOL to start external NAS
Thanks mikka, it worked like a charm, after 1 hour of messing around

I had some problems deleting the font ARIALUNI.TTF (I think because it is on the read-only filesystem squashfs). I used your "font.sh" script, but that resulted in an error when trying to copy the download font over the existing one.

After all I needed no extra free space. For people who want to achieve the same, I used the following steps:

- Login to the POHD using putyy(telnet)
- 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 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


Last edited by kaayman on Sat Dec 11, 2010 7:26 pm, edited 2 times in total.



Sat Sep 04, 2010 11:15 am
Profile

Joined: Wed Sep 01, 2010 7:25 pm
Posts: 17
Post Re: Execute WOL to start external NAS
Strange. Previous solution worked, I tested it, but it doesn't anymore.
Can't figure out why. The busybox2 executable is still were I left it.
The command to wake my NAS is still in the rcS file.

But the magic packet doesn't reach my NAS anymore. When i start busybox2 manually it also doesn't work.

Any ideas ?


Mon Sep 06, 2010 8:31 pm
Profile

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: Execute WOL to start external NAS
Can you try to wake-up NAS different way? If it still doesn't work, then you should check NAS. Maybe something has changed in it's configuration.


Mon Sep 06, 2010 9:29 pm
Profile

Joined: Wed Sep 01, 2010 7:25 pm
Posts: 17
Post Re: Execute WOL to start external NAS
The problem is fixed already. It had nothing to do with the POHD.
I recently upgraded the bios of my motherboard. This disabled the WOL functionality.

Changed the setting, and now everything works flawlessly :lol:

thx for the info


Tue Sep 07, 2010 5:06 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 1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 1 guest


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.