How to suspend the Linux system for a specific period of time remotely?

3

I'd like to suspend or hibernate my RedHat 5 Linux system for a specific period of time. For example I'd like to suspend the system at 12:00 and wake it up at 15:00 remotely.

Is there any way to do this ?

parangyee

Posted 2012-11-06T00:22:18.727

Reputation:

Is this a physical box, VM, VPS, other? – jscott – 2012-11-06T00:27:27.123

Answers

2

Most BIOSes have RTC Alarm functionality, which will wake the computer at a set time each day. The OS itself could then put the computer into sleep/hibernate/shutdown at a set time, via cron or other.

Chris S

Posted 2012-11-06T00:22:18.727

Reputation: 5 907

1

You can use a cron job to perform a system shutdown at your desired time.

To start your computer again, you can use your system BIOS RTC alarm, if you have one. This can be difficult to change, so it is best if you always start up again at the same time of day.

NVRAM-WakeUp is one of a couple tools that can change the BIOS startup time from within Linux, but each motherboard will react differently. YMMV

Wake on LAN is a good solution for on-demand startups, but requires access to another computer that can send Magic Packets to your NICs hardware address. This typically means a computer on the same physical network.

edithink

Posted 2012-11-06T00:22:18.727

Reputation: 11

0

Another possibility would be to shutdown the system using cron or stuff, and to be woken up using WakeOnLan, if the prior mentioned RTC Alarm is not availible.

Bonsi Scott

Posted 2012-11-06T00:22:18.727

Reputation: 444

Is it possible to change the Wakeuptime (which I can set in the PCs BIOS) using a command line tool? – Bonsi Scott – 2012-11-06T06:19:10.053

0

Thanks all.

WakeOnLan works brilliantly in my Redhat Linux (IBM Lenovo) ! I used WakeOnLan client in my Windows XP machine.

Reference

http://www.tjansson.dk/?p=83

http://edvoncken.net/2011/02/configure-wake-on-lan-on-red-hat-enterprise-linux/

parangyee

Posted 2012-11-06T00:22:18.727

Reputation: 1

Please expand your answer with brief overview of the software you're suggesting and tell why you consider it a good answer to the original question. – bytebuster – 2012-11-07T06:31:49.900