VMware Cloud Community
mpeerboom
Contributor
Contributor

Is there a way to run a script on a guest VM using vSphere CLI?

Is there anything analogous to PowerCLI's Invoke-VMScript or the web API's StartProgramInGuest? I have not been able to find a way to do this through the vSphere CLI.

Thanks.

Reply
0 Kudos
1 Reply
madcitybt
Contributor
Contributor

In the system I am creating which uses vCLI and the perl SDK I am simply using ssh with keys to start and run scripts I am going to have in all my templates for pipelines.  Maybe

that is a simpler way. I am only doing vmware things with the command line. The rest is Linux and Perl.

Reply
0 Kudos