Page 1 of 2
Wake-on-LAN
Posted: Sun Sep 19, 2010 4:12 pm
by NeverSimple
Hello,
I just noticed that wake-on-lan updated it's way into my system...

. Great idea. But.. why is wol only for static IP addresses ? The most important computer i want to wake up uses dhcp. I used to start up that computer with my router's wol function while it was using a dhcp address, so it probably isn't a technical issue.
Can anyone tell me why wol is implemented this way ??
Richard Herman
Re: Wake-on-LAN
Posted: Wed Sep 22, 2010 1:38 pm
by cpg
Amahi does not track the leases dished out by the DHCP server, so once a lease disappears, there is no way to see it by the software. Waking up a device once it's online (once the software can see the lease) is too late
This would entail some changes. Please file a bug and we will look into it. It's useful functionality!
Go to
http://bugs.amahi.org -
1) Login using the same username you use on amahi.org
2) Choose the project (platform)
3) Choose "New Issue"
Re: Wake-on-LAN
Posted: Thu Sep 23, 2010 12:48 am
by NeverSimple
Please file a bug and we will look into it. It's a useful functionality!"
Just done that. (Feature #638).
Thanks for your answer.
Richard
Re: Wake-on-LAN
Posted: Fri Sep 24, 2010 10:02 am
by chaosdesign
Just a though
Since Amahi DHCP server dishes out the same IP/host/domain every time the pc starts (in my case every time a coconut), then there must be a record with a relation between the mac address and IP/Host name.
I will look into this to see if i can find anything.
Re: Wake-on-LAN
Posted: Fri Sep 24, 2010 10:15 am
by chaosdesign
Bingo
I had a look through Webmin and under servers --> dhcp
I scrolled down to view leases,
there were no current leases active,
so i clicked on the show all active and Expired leases
and bingo
the path location to where the lease information is kept is
/var/lib/dhcpd/dhcpd.leases
I am sure the dev team can pull something out of this.
On that note the WOL function is best serverd by Mac address / hostname
hope this helps
Re: Wake-on-LAN
Posted: Fri Sep 24, 2010 2:49 pm
by cpg
ok, pursuant to
bug #638 ...
can you try this platform?
it ought to do this:
1. show more leases, including inactive/expired ones
2. let you wake the machines up
Code: Select all
rpm -Uvh http://alpha.amahi.org/tmp/hda-platform-5.5.1-20.noarch.rpm
please follow up in the bug by clicking on update.
you can also watch the bug updates as they happen by clicking on "watch".
Re: Wake-on-LAN
Posted: Fri Sep 24, 2010 3:42 pm
by NeverSimple
can you try this platform?
it ought to do this:
1. show more leases, including inactive/expired ones
2. let you wake the machines up
Well, maybe it ought to do that, but it my case it seems to do something else

. If I try to access the 'networking' tab I get the message: "the application has found an error. You will be forwarded shortly"
I haven't done anything to try to solve this, not even rebooted the server. I could paste the complete output from the 'debug' page I'm forwarded to, but I don't know if that will be usefull. I'll try to leave the server in this state until I hear what will be the best way to solve this....
Richard
Re: Wake-on-LAN
Posted: Fri Sep 24, 2010 3:45 pm
by cpg
yeah, submit a debug report please (after you get forwarded, it should redirected you to the debug tab).
also, in the bug report, can you possibly attach the
two lease files:
Code: Select all
/var/lib/dhcpd/dhcpd.leases
/var/lib/dhcpd/dhcpd.leases~
Re: Wake-on-LAN
Posted: Fri Sep 24, 2010 4:28 pm
by NeverSimple
yeah, submit a debug report please (after you get forwarded, it should redirected you to the debug tab).
also, in the bug report, can you possibly attach the
two lease files:
Code: Select all
/var/lib/dhcpd/dhcpd.leases
/var/lib/dhcpd/dhcpd.leases~
At least I tried... I clicked 'the submit for debug' button, entered a description and clicked 'submit for debug' again, expecting a page where I could attach something. Some message flashed across the screen and the report was gone..

It's 01:25 AM local time and the whisky tastes great! that probably doesn't help (it does, but on another level...)
Could you tell me where or how to attach those files ??
Richard
Re: Wake-on-LAN
Posted: Fri Sep 24, 2010 5:17 pm
by NeverSimple
[received a PM from 'cpg' as a response to the bug report with a request to try hda-platform-5.5.1-20]
Installed the update and the 'networking' tab is accessible again. I can see the wake-on-lan button for the dhcp clients. I will have to do some more testing to see if it works. I will update when I have more information.
Thanks for looking into a really useful addition to the WOL feature. Appreciate it!
Richard