<div dir="auto">Do you can do this with python sdk, do you can build a list and shutdown all vms. If you want I can make a script to you tomorrow.<div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Marcelo Leandro</div></div><div class="gmail_extra"><br><div class="gmail_quote">Em 09/01/2018 8:30 PM, &quot;Wesley Stewart&quot; &lt;<a href="mailto:wstewart3@gmail.com">wstewart3@gmail.com</a>&gt; escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is there an easy way to do this?<div><br></div><div>I have a UPS connected to my freenas box, and using NUT and UPSC I can monitor the battery level on my centos 7 host.</div><div><br></div><div>In the case of an emergency, and my UPS goes below, lets say 40% battery, I would like to make a script to shutdown all running VMs, and then reboot the host.  </div><div><br></div><div>Otherwise I am afraid of sending a straight reboot command to the host without taking care of the virtual machines first.</div><div><br></div><div>Thanks! </div></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div></div>