Hi All,
I am looking for options to reboot the VM using CLI or script. I tried using ovftool but looks like there is no way using ovftool just to power-off and power-on? is there any way I Can achieve rebooting VM through CLI / Script? I might need to have some power down time between power off and power on cycles.
Part of our automation i would like to perform this for certain use case validations.
--
Thanks in advanced,
Venkata
Hi all,
I was able to achieve Power cycling using python API pyVmomi. GitHub - vmware/pyvmomi: VMware vSphere API Python Bindings
Thanks every one for pointing me to right direction, when scott moved this ticket to vSphere that helped to move in right direction and look for vsphere API and ended up finding https://github.com/vmware/pyvmomi/
Which VMware product?
Hi Scott,
vSphere Client version 6.7.0.42000 (web)
ovftool version: VMware ovftool 4.4.0 (build-15722219)
VMware ESXi, 6.0.0, 5572656
--
Thanks,
Venkat
Moderator: Thread moved to the vSphere area.
OVFtool is not a CLI tool for operations on VMs. Look at PowerCLI.
Hi all,
I was able to achieve Power cycling using python API pyVmomi. GitHub - vmware/pyvmomi: VMware vSphere API Python Bindings
Thanks every one for pointing me to right direction, when scott moved this ticket to vSphere that helped to move in right direction and look for vsphere API and ended up finding https://github.com/vmware/pyvmomi/
Feel free to mark your own answer as correct for the benefit of others in the future.