Hi,
I have a PC with CentOS 5.4 installed.
I run a "shutdown" command via cron every day at 1pm.
I need to start this PC every day at 11am. I believe this can be accomplished using Wake-On-LAN.
I do not have much knowledge on this, hence seeking paid help from someone who can do this for me.
Please contact me off-list to discuss more.
Thx & Rgds, Sans
2011/7/1 RSCL Mumbai rscl.mumbai@gmail.com:
I need to start this PC every day at 11am. I believe this can be accomplished using Wake-On-LAN.
WoL requires a NIC capable of doing that. I don't think cheap PC NICs fall in that category. Your first task is to determine whether support for WoL is available in your NIC.
The second task is to setup another PC in the LAN that would send the WoL command.
At which point, you will realize it is totally pointless to shut down the server every morning at 1AM only to wake it up again at 11AM.
Binand
2011/7/1 RSCL Mumbai rscl.mumbai@gmail.com:
I need to start this PC every day at 11am. I believe this can be accomplished using Wake-On-LAN.
WoL requires a NIC capable of doing that. I don't think cheap PC NICs fall in that category. Your first task is to determine whether support for WoL is available in your NIC.
@Binad Thx
I have an Acer Veriton. As per the specs on their website, it says Gigabit Ethernet, Wake On Lan ready. How can I verify WOL feature ?
Thx
On Friday 01 Jul 2011 16:58:33 RSCL Mumbai wrote:
How can I verify WOL feature ?
Well this thread reminded me of my long lost desire to set up WOL. So heres what google taught me so far. First enable WOL or whatever its called in your bios. I have an option called boot on PME
To check whether your NIC supports WOL which i found here [1], run
ethtool eth0
assuming eth0 is the desired interface. you may have to install ethtool using your distributions package manager. heres what i get.
Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Link partner advertised pause frame use: Symmetric Link partner advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 32 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: g Current message level: 0x00000007 (7) drv probe link Link detected: yes
according to the link this line "Supports Wake-on: pg" means it supports wake up by network ring i have pumbg so i assume i do too.
the next step is run
ethtool -s eth0 wol g
this needs to be done every time you shutdown via a initscript or something depending on your distro. You also need to prevent linux from shutting down the network chip completely. You'll find instructions for ubuntu here [2].
Next you need to note down the hardware address of the NIC, And then using the wakeonlan tool from the remote machine, try and get the desired machine to boot. The hardware address can be found through ifconfig
wakeonlan <hardware add> (eg wakeonlan 00:16:76:12:64:97)
however i didn't have much luck myself, any pointers will be most welcome. When the machine shuts down the corresponding light on the router is on so im assuming the NIC is power on. however when i run wakeonlan 00:16:76:12:64:97 from another machine .. nothing happens.
[1] http://forums.gentoo.org/viewtopic-t-460044-start-0.html [2] http://ubuntuforums.org/showthread.php?t=1380776
On Friday 01 Jul 2011 23:32:55 Yohan Pereira wrote:
Next you need to note down the hardware address of the NIC, And then using the wakeonlan tool from the remote machine, try and get the desired machine to boot. The hardware address can be found through ifconfig
wakeonlan <hardware add> (eg wakeonlan 00:16:76:12:64:97)
however i didn't have much luck myself, any pointers will be most welcome. When the machine shuts down the corresponding light on the router is on so im assuming the NIC is power on. however when i run wakeonlan 00:16:76:12:64:97 from another machine .. nothing happens.
etherwake always worked. Infact a setup from 2004 was working just the same until last year. The setup was taken down as the server room was revamped. The script was a simple oneliner.
On Friday 01 Jul 2011 16:03:37 RSCL Mumbai wrote:
Hi,
I have a PC with CentOS 5.4 installed.
I run a "shutdown" command via cron every day at 1pm.
I need to start this PC every day at 11am. I believe this can be accomplished using Wake-On-LAN.
I do not have much knowledge on this, hence seeking paid help from someone who can do this for me.
All onboard nics have the feature. You have to send a magic packet from another machine. Use wakeonlan or etherwake in a cronjob.
On Fri, Jul 1, 2011 at 4:03 PM, RSCL Mumbai rscl.mumbai@gmail.com wrote:
Hi,
I have a PC with CentOS 5.4 installed.
I run a "shutdown" command via cron every day at 1pm.
I need to start this PC every day at 11am. I believe this can be accomplished using Wake-On-LAN.
Have a look at your Computer's BIOS. Most BIOS have the feature (RTC) to turn ON the system at a given time. I have been using this feature for quite a few years now.
BIOS companies puts this feature in different places - so you may have to go through all the menus and sub menus.
HTH.
On Sat, Jul 02, 2011 at 11:08:37AM +0530, Arun Khan wrote:
On Fri, Jul 1, 2011 at 4:03 PM, RSCL Mumbai rscl.mumbai@gmail.com wrote:
Hi,
I have a PC with CentOS 5.4 installed.
I run a "shutdown" command via cron every day at 1pm.
I need to start this PC every day at 11am. I believe this can be accomplished using Wake-On-LAN.
Have a look at your Computer's BIOS. Most BIOS have the feature (RTC) to turn ON the system at a given time. I have been using this feature for quite a few years now.
BIOS companies puts this feature in different places - so you may have to go through all the menus and sub menus.
Absolutely.
At the risk of being accused of self-promotion, read: http://blog.mistrynitesh.com/Computer_as_an_Alarm_Clock_.html
:)
Have a look at your Computer's BIOS. Most BIOS have the feature (RTC) to turn ON the system at a given time. I have been using this feature for quite a few years now.
My PC does have this ALARM function. I setup the alarm, but the PC did not boot at the set time.
Should I be shutting down the PC in any specific manner. I did a standard `shutdown -h now`
Thx Sans
On Mon, Jul 4, 2011 at 5:30 PM, RSCL Mumbai rscl.mumbai@gmail.com wrote:
Have a look at your Computer's BIOS. Most BIOS have the feature (RTC) to turn ON the system at a given time. I have been using this feature for quite a few years now.
My PC does have this ALARM function. I setup the alarm, but the PC did not boot at the set time.
Is your PC RTC set to UTC or "local" time? Most likely you may have set the time in your OS to reference the BIOS time as UTC; in which case the OS during shutdown will set the BIOS clock system time to UTC time. To have the system boot at your "local" time, you will need to adjust the "alarm" time in the BIOS to IST - 5:30.
Is your PC RTC set to UTC or "local" time? Most likely you may have set the time in your OS to reference the BIOS time as UTC; in which case the OS during shutdown will set the BIOS clock system time to UTC time. To have the system boot at your "local" time, you will need to adjust the "alarm" time in the BIOS to IST - 5:30.
I setup the alarm at per UTC time. Still did not boot.
Anything particular about the way to shutdown the server (CentOS) so that it boots using BIOS ALARM function
Thx
On Tue, Jul 5, 2011 at 11:59 AM, RSCL Mumbai rscl.mumbai@gmail.com wrote:
Is your PC RTC set to UTC or "local" time? Most likely you may have set the time in your OS to reference the BIOS time as UTC; in which case the OS during shutdown will set the BIOS clock system time to UTC time. To have the system boot at your "local" time, you will need to adjust the "alarm" time in the BIOS to IST - 5:30.
I setup the alarm at per UTC time. Still did not boot.
Strange. May be your motherboard has a buggy BIOS; check to see if there is an update and/or contact tech support.
Anything particular about the way to shutdown the server (CentOS) so that it boots using BIOS ALARM function
I have a script that uses /sbin/poweroff to shut down the system when there is no "ESTABLISHED" network connections beteween 00:30 and 07:30 hours. RTC is programmed to boot the system @ 09:00 hours.
Thx
BTW, it would be nice to put your name. What is RSCL Mumbai?