Page 1 of 2

WOL after Update to Amahi 7

Posted: Fri Jul 18, 2014 10:46 am
by rdagijones
I just realized that Wake-on-lan is not where I use to find it since I upgraded to Amahi 7. Can someone tell me where it is located? I use to assign static IPs to client computers on the Dashboard under Network > Fixer IPs and then the WOL link was under each computer. How do I use WOL on Amahi 7?

Re: WOL after Update to Amahi 7

Posted: Fri Jul 18, 2014 5:38 pm
by bigfoot65
That feature was left out of Amahi 7. Not sure if it was due to lack of popularity or for another reason. It was not a widely used function that I am aware.

Not sure how you can use it now other than via command line or an application installed on a client.

Re: WOL after Update to Amahi 7

Posted: Sat Jul 19, 2014 1:50 am
by rdagijones
It is very helpful for Remote Desktop. Here is the challenge: If computers in my network are set to sleep while one is away (saves a bit of energy in a good-sized office) one has to wake them before RDP is possible. That is how I used WOL. Perhaps there is another solution out there. Any suggestions?

Re: WOL after Update to Amahi 7

Posted: Sat Jul 19, 2014 6:55 am
by bigfoot65
I understand the use, just not sure how you can implement it with Amahi 7. Command line is not ideal in your case, so maybe there is a web solution on the internet somewhere.

Recommend you do some research and maybe we can create an app or plug-in for it.

Re: WOL after Update to Amahi 7

Posted: Sat Jul 19, 2014 3:12 pm
by rdagijones
I found this fun little piece of Java software (http://sourceforge.net/projects/guijavawol/) that could be used as an extension for OpenVPN ALS, I think. Problem is to make an extension one has to write an .xml file and package the program properly to upload it to OpenVPN ALS. I cannot seem to find a simple explanation for the .xml config file. My xml is horrible and java non-existent. If I, or anyone else for that matter, gets anywhere with it I will post here.

Re: WOL after Update to Amahi 7

Posted: Sat Jul 19, 2014 3:30 pm
by bigfoot65
Nothing can ever be easy.

I did submit a feature request for a plugin to be built to provide the WOL capability. It will be racked and stacked with all the other work, but it has been identified.
https://bugs.amahi.org/issues/1480

Re: WOL after Update to Amahi 7

Posted: Sun Jul 20, 2014 7:46 pm
by rdagijones
Ignore the java program I listed earlier. It only works in the network which one is presently connected. To wake a computer in a network from a remote device one would need a device in that network to send the "magic packet." That is why WOL on the Amahi dashboard is such a handy thing. I am learning.

Re: WOL after Update to Amahi 7

Posted: Mon Jul 21, 2014 4:54 am
by bigfoot65
No problem. I am sure you will find something.

Re: WOL after Update to Amahi 7

Posted: Tue Jul 22, 2014 8:34 am
by rdagijones
OK, I received some advice to check out making a WOL script (http://bash.cyberciti.biz/misc-shell/si ... computers/), make a script for each computer I want to wake, give them privileges and make them executable, and store those on the server. Then use the Putty extension for OpenVPN ALS to tell the scripts to execute. My goal is to make a single-click icon for each client on OpenVPN ALS so that the "tech challenged" at the office can wake their computer remotely easily. I am working hard on this since Remote Desktop is almost useless without WOL in my network situation.

Questions:
  • * Could I use the "remote command" function in Putty from outside the network to tell my Amahi server to execute a script stored on the server?
    * Where is the best place to store these WOL scripts?
    * Will the scripts need root privileges to work properly?

Re: WOL after Update to Amahi 7

Posted: Tue Jul 22, 2014 1:25 pm
by bigfoot65
Not sure if this helps, but thought I would try.
* Could I use the "remote command" function in Putty from outside the network to tell my Amahi server to execute a script stored on the server?
Not sure, this is something you may need to research. There is an admin guide for OpenVPN ALS (Adito).
https://wiki.amahi.org/index.php/Adito
* Where is the best place to store these WOL scripts?
I would place them in a share directory that way you can adjust them as needed.
* Will the scripts need root privileges to work properly?
Depends on who is running them, apache or user. I would try as user first, then apache, and root as a last resort.