LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Needed help to setup Wake on Lan Feature on Rhel ws4.0 installed on Dell OptiPlex 620 (https://www.linuxquestions.org/questions/linux-newbie-8/needed-help-to-setup-wake-on-lan-feature-on-rhel-ws4-0-installed-on-dell-optiplex-620-a-620551/)

pkhera_2001 02-12-2008 07:20 AM

Needed help to setup Wake on Lan Feature on Rhel ws4.0 installed on Dell OptiPlex 620
 
Hi All!

I have been looking to enable WOL(Wake on Lan) Feature on Rhel WS4.0 Installed on Dell OptiPlex 620 Desktops.
Here are the details:
We have a lab of consisting 30 Desktop's out of which 18 are as per above mentioned configuration. Now we have an requirement to enable WOL feature so that user's can wake up these machines in the morning and if there is not activity on the systems for 2 hours then these systems shall get powered down itself. All users have direct access to the Lab Vlan (192.168.212.X/24) so sending any packet to this vlan shall not be any issue.
I can immediately provide the further required information, kindly help me get it resolved.

Regards,
Parveen Khera
pkhera_2001@rediffmail.com

lazlow 02-12-2008 12:20 PM

WOL is a feature that is generally activated in your bois rather than the os.

pkhera_2001 02-12-2008 10:50 PM

Thanks for the inputs
 
Hi Lazlow!

I know that it's a feature of Hardware(Mainboard supporting this feature)and the machines i mentioned support WOL.

I have found perl package that can be used to send Magic Packet (ARP Protocol)to wake up a machine supporting Wol:
http://gsd.di.uminho.pt/jpo/software/wakeonlan/

Further this script (through Cron jobs) is going to power down the machine if there is not user process running since last 2 hours:

"bash -c "for uid in \`ps -eo uid --no-heading\`; do [[ $uid -ge 500 ]] && /sbin/shutdown -c && exit ; done || /sbin/shutdown -h +120""

I have to test some scenarios on it, like if a user is connected through SSHD or VNC but not working then what to do ...?

I would like to have some inputs on this...

Another task we have under consideration is that if we can use Hibernation in Linux to bring up the machine in minimum time and machines don't need to shutdown completely.

Thanks & Regards,
Parveen Khera


All times are GMT -5. The time now is 06:34 AM.