Re: [ovirt-users] Shutdown all VM's command line

2018-01-16 Thread Yaniv Kaul
On Thu, Jan 11, 2018 at 1:47 PM, Giorgio Biacchi wrote: > On 01/11/2018 11:44 AM, Kapetanakis Giannis wrote: > >> On 10/01/18 22:11, Wesley Stewart wrote: >> >>> Marcelo, >>> >>> I would greatly appreciate seeing a script! It would be an excellent >>> chance for me to learn

Re: [ovirt-users] Shutdown all VM's command line

2018-01-16 Thread Giulio Casella
Il 16/01/2018 02:02, Wesley Stewart ha scritto: I am using the default certificates.   Took me a second to find out where they are stored, but after pointing directly to it, everything is working like a champ. If I remember correctly, if you use option "insecure=True", you can omit ca_file

Re: [ovirt-users] Shutdown all VM's command line

2018-01-15 Thread Wesley Stewart
Hey, thanks for sending this to me. Works like a charm. I have this tied in with a UPS script that monitors the UPS on another system, and fires off your script before a shutdown command. Works pretty well so far! I am using the default certificates. Took me a second to find out where they

Re: [ovirt-users] Shutdown all VM's command line

2018-01-11 Thread Giorgio Biacchi
On 01/11/2018 11:44 AM, Kapetanakis Giannis wrote: On 10/01/18 22:11, Wesley Stewart wrote: Marcelo, I would greatly appreciate seeing a script!  It would be an excellent chance for me to learn a bit about using ovirt from the command line as well! I'm using something like this with

Re: [ovirt-users] Shutdown all VM's command line

2018-01-11 Thread Kapetanakis Giannis
On 10/01/18 22:11, Wesley Stewart wrote: > Marcelo, > > I would greatly appreciate seeing a script!  It would be an excellent chance > for me to learn a bit about using ovirt from the command line as well! I'm using something like this with ovirt-shell vm_shutdown: #!/bin/sh

Re: [ovirt-users] Shutdown all VM's command line

2018-01-10 Thread Wesley Stewart
Marcelo, I would greatly appreciate seeing a script! It would be an excellent chance for me to learn a bit about using ovirt from the command line as well! On Tue, Jan 9, 2018 at 6:55 PM, Marcelo Leandro wrote: > Do you can do this with python sdk, do you can build a

Re: [ovirt-users] Shutdown all VM's command line

2018-01-09 Thread Yaniv Kaul
On Jan 10, 2018 1:56 AM, "Marcelo Leandro" wrote: 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. Or with Ansible. But in 4.2, I believe the VMs are registered with libvirt and will be

Re: [ovirt-users] Shutdown all VM's command line

2018-01-09 Thread Marcelo Leandro
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. Marcelo Leandro Em 09/01/2018 8:30 PM, "Wesley Stewart" escreveu: > Is there an easy way to do this? > > I have a UPS connected to my freenas