Wake-on-LAN

User avatar
NeverSimple
Posts: 114
Joined: Sat Aug 21, 2010 4:26 pm
Location: The Netherlands

Wake-on-LAN

Postby NeverSimple » Sun Sep 19, 2010 4:12 pm

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Wake-on-LAN

Postby cpg » Wed Sep 22, 2010 1:38 pm

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"
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
NeverSimple
Posts: 114
Joined: Sat Aug 21, 2010 4:26 pm
Location: The Netherlands

Re: Wake-on-LAN

Postby NeverSimple » Thu Sep 23, 2010 12:48 am

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

User avatar
chaosdesign
Posts: 33
Joined: Sat Mar 27, 2010 1:17 am
Location: Tauranga NZ
Contact:

Re: Wake-on-LAN

Postby chaosdesign » Fri Sep 24, 2010 10:02 am

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.
Image

User avatar
chaosdesign
Posts: 33
Joined: Sat Mar 27, 2010 1:17 am
Location: Tauranga NZ
Contact:

Re: Wake-on-LAN

Postby chaosdesign » Fri Sep 24, 2010 10:15 am

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
Image

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Wake-on-LAN

Postby cpg » Fri Sep 24, 2010 2:49 pm

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".
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
NeverSimple
Posts: 114
Joined: Sat Aug 21, 2010 4:26 pm
Location: The Netherlands

Re: Wake-on-LAN

Postby NeverSimple » Fri Sep 24, 2010 3:42 pm


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 :shock: . 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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Wake-on-LAN

Postby cpg » Fri Sep 24, 2010 3:45 pm

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~
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
NeverSimple
Posts: 114
Joined: Sat Aug 21, 2010 4:26 pm
Location: The Netherlands

Re: Wake-on-LAN

Postby NeverSimple » Fri Sep 24, 2010 4:28 pm

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.. :evil: 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

User avatar
NeverSimple
Posts: 114
Joined: Sat Aug 21, 2010 4:26 pm
Location: The Netherlands

Re: Wake-on-LAN

Postby NeverSimple » Fri Sep 24, 2010 5:17 pm

[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

Who is online

Users browsing this forum: No registered users and 36 guests