<div dir="ltr">Hi,<div><br></div><div>I'm looking for a way to use virsh to connect to vCenter/VCSA and do some simple management of the VM's in case of power loss (I'm planning to run the script upon UPS/apcd event of power failure).</div><div><br></div><div>Looking through the virsh documentation, I didn't find 2 things:</div><div><br></div><div>1. Login through a script (I don't see any user/password, specially since VCSA for example requires to use username@vsphere.local [or your AD domain insteadd of vsphere.local if you connected it to your AD domain])</div><div>2. Get all the VMs running on the vCenter, not just specific hosts.</div><div><br></div><div>Any suggestion?</div><div><br></div><div>Thanks</div></div>