VMware Cloud Community
chavez9119
Contributor
Contributor
Jump to solution

How to restart a service on the esx host with vi toolkit

Is it possible to restart esx services (such as syslogd, hpasm, hpsmhd) via a Powershell script using the VI API?

I have a powershell script that invokes plink.exe to do it but I would rather not have to use plink.

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Afaik, there are no such APIs.

There is the Start-VmHostService cmdlet but that is only for a very limited set of services (ntpd, sshd, vmware-vpxa).


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

Afaik, there are no such APIs.

There is the Start-VmHostService cmdlet but that is only for a very limited set of services (ntpd, sshd, vmware-vpxa).


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos