Timed on/off machine solution and on/off machine Solution

Source: Internet
Author: User

Timed on/off machine solution and on/off machine Solution

 

Managed servers

Esxi 6 2, windows 2012 2

The Wi-Fi switch is used in a unified manner. esxi6 sets SSH auto-start, VM is set to switch with host, and HYPERV sets VM auto-start.

Set windows scheduled task and shutdown

Use C # SHARPSSH to write a small program, connect to esxi through SSH to execute the/sbin/poweroff command, set windows scheduled tasks, and regularly execute this program to shut down ESXI

As a result, the server is shut down, and the VM is also shut down as the host is closed (the VM is shut down according to the settings before the host is closed)

 

 

Finally, set the timed switch of the WIFI outlet to cut off the power supply and enable it again the next day. After power-on, all servers will start automatically, and the VM will start.

If you only need to set the time period for the WIFI switch on holidays, you no longer need to use the BIOS to reboot every day.

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.